WisDem Posted February 15, 2013 Report Share Posted February 15, 2013 Добрый день, подскажите пожалуйста как поставить ограничение на сумму платежа в модулях платежный документ и робокасса.те необходимо когда человек указывает сумму, проверять что введенная сумма не мение 400руб. если мение то выводить ошибку.Не могу найти где происходит проверка данного поля - sum Quote Link to comment Share on other sites More sharing options...
admin Posted February 15, 2013 Author Report Share Posted February 15, 2013 \application\modules\billing\forms\RobokassaPay.phpв элементе Суммавместо'validators' => array('Int')написать'validators' => array( 'Int', array('Between', FALSE, (array('min' => 400, 'max' => 15000)))), Quote Link to comment Share on other sites More sharing options...
WisDem Posted February 15, 2013 Report Share Posted February 15, 2013 Премного благодарен Quote Link to comment Share on other sites More sharing options...
Softal Posted April 6, 2013 Report Share Posted April 6, 2013 День добрый. Подскажите где подправить код так, чтобы дата в отчетах была ограничена датой подключения (перепробовал разные варианты, но пока не понял где). И второй вопрос как сделать проверку группы при авторизации? Quote Link to comment Share on other sites More sharing options...
admin Posted April 10, 2013 Author Report Share Posted April 10, 2013 где подправить код так, чтобы дата в отчетах была ограничена датой подключения\application\modules\billing\controllers\IndexController.phpв каждом экшенах где строятся отчёты, кроме того вам надо еще получить дату подключения $urfa->getUserInfo()как сделать проверку группы при авторизации\application\modules\default\controllers\IndexController.phpвыбираете группы пользователя и проверяетепростой реализации здесь нет Quote Link to comment Share on other sites More sharing options...
xDee Posted June 20, 2013 Report Share Posted June 20, 2013 Добрый день! Очень понравился функционал Вашего кабинета, но никак не могу прикрутить его к билингу, стандартный кабинет работает, а Ваш не хочет. Сделал все как написано , перечитал обе темы здесь и на нетапе и все без толку. Видимо где то туплю. Может вместе попробуем разобраться где ? ))Стоит apache22 на freebsd 8.3 (стандартный кабинет работает), значит с php все норм, установлен в папку /usr/local/www/utm/ пути прописаны до www , в файле applications.ini изменил все пути в файлах resources.router.routes.*.route .Вроде все, Вот тут и начинается интересное, при входе на первую страницу такое ощущение что не подцепились слои, все набок без расцветки, ну ладно это пока не глобально, далее ввод логина и пароля в режиме development выводит вот такое сообщение : Zend_Controller_Router_Exception: No route matched the requestthrown in /usr/local/www/utm/library/Zend/Controller/Router/Rewrite.php on line 408 Call StackZend_Controller_Router_Rewrite->route() in /usr/local/www/utm/library/Zend/Controller/Front.php on line 911 Zend_Controller_Front->dispatch() in /usr/local/www/utm/library/Zend/Application/Bootstrap/Bootstrap.php on line 97 Zend_Application_Bootstrap_Bootstrap->run() in /usr/local/www/utm/library/Zend/Application.php on line 366 Zend_Application->run() in /usr/local/www/utm/www/index.php on line 34Помогите разобраться плиз. Quote Link to comment Share on other sites More sharing options...
admin Posted June 20, 2013 Author Report Share Posted June 20, 2013 в файле applications.ini изменил все пути в файлах resources.router.routes.*.route здесь ничего менять не надо Quote Link to comment Share on other sites More sharing options...
admin Posted June 20, 2013 Author Report Share Posted June 20, 2013 в настройках apache <VirtualHost *:80> ServerName (cabinet.local-написать своё) DocumentRoot /usr/local/www/utm/www SetEnv APPLICATION_ENV "development" <Directory /usr/local/www/utm/www> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Quote Link to comment Share on other sites More sharing options...
xDee Posted June 20, 2013 Report Share Posted June 20, 2013 Да спасибо, поправил и все заработало, а подскажите вроде я читал что есть возможность подключения в кабинете модуля "обещанный платеж". Это платное или я просто его не могу найти ? Quote Link to comment Share on other sites More sharing options...
admin Posted June 20, 2013 Author Report Share Posted June 20, 2013 в настройках самого биллинга создайте правила для обещанного платежа, Quote Link to comment Share on other sites More sharing options...
xDee Posted July 18, 2013 Report Share Posted July 18, 2013 Добрый день! Такая ситуация, utm переехал на новую машину , apach тоже на новой машине, на старых все работало как надо. Теперь не пускает в кабинет , пишет неверная пара пароль -логин. В логах utm пишет: ERROR : Jul 17 17:21:17 2992cc40 DBAExistingError: DBAccess::get_sys_user: user not existsERROR : Jul 17 17:21:17 2992cc40 DBAExistingError: [__rpcf_get_sys_user] DBAccess::get_sys_user: user not existsERROR : Jul 17 17:21:46 2992cb00 RPCConn[sSL]<[email protected]>: SSL connection failed...ERROR : Jul 17 17:23:05 2992c9c0 RPCConn[sSL]<[email protected]>: SSL connection failed...ERROR : Jul 17 17:25:29 2992c880 RPCConn[sSL]<[email protected]>: SSL connection failed...ERROR : Jul 17 17:25:43 2992c740 RPCConn[sSL]<[email protected]>: SSL connection failed... Гуглил, ничего нет, что я сделал не правильно, подскажите пожалуйста . Quote Link to comment Share on other sites More sharing options...
admin Posted July 18, 2013 Author Report Share Posted July 18, 2013 возможно в настройках php не включен модуль openssl Quote Link to comment Share on other sites More sharing options...
xDee Posted July 18, 2013 Report Share Posted July 18, 2013 Видимо так, спасибо ! Quote Link to comment Share on other sites More sharing options...
xDee Posted August 13, 2013 Report Share Posted August 13, 2013 Добрый день! подскажите пожалуйста как можно убрать кнопку "Статус интернета" выключить или включить. Возможно ли вообще такое ? Quote Link to comment Share on other sites More sharing options...
admin Posted August 13, 2013 Author Report Share Posted August 13, 2013 <a class="btn btn-mini" href="/user/change-status/int_status/<?=(int)!$this->accounts[$account]['int_status']?>/aid/<?=$account?>"> <?=Urfa_Resolve::resolveIntStatusForAccount($this->accounts[$account]['int_status'])?> </a> \application\modules\billing\views\scripts\index\index.phtml удалите эту часть кода Quote Link to comment Share on other sites More sharing options...
xDee Posted August 13, 2013 Report Share Posted August 13, 2013 Спасибо все получилось. Quote Link to comment Share on other sites More sharing options...
AlexanderVir Posted August 21, 2013 Report Share Posted August 21, 2013 Подскажите, пожалуйста, словил ошибку [Wed Aug 21 16:57:50 2013] [error] [client 172.16.1.45] File does not exist: /var/www/logout, referer: http://172.16.1.250/UTM5-test/web/www/ UTM5-test.lan:80 172.16.1.45 - - [21/Aug/2013:16:57:50 +0300] "POST /UTM5-test/web/www/ HTTP/1.1" 302 20 "http://172.16.1.250/UTM5-test/web/www/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" UTM5-test.lan:80 172.16.1.45 - - [21/Aug/2013:16:57:50 +0300] "GET /UTM5-test/web/www/user/ HTTP/1.1" 302 20 "http://172.16.1.250/UTM5-test/web/www/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.00.95 Safari/537.36" UTM5-test.lan:80 172.16.1.45 - - [21/Aug/2013:16:57:50 +0300] "GET /logout HTTP/1.1" 404 327 "http://172.16.1.250/UTM5-test/web/www/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36"Как с этим бороться. И интерфейс почему то после запуска выглядит скупо, по-крайней мере не так, как на скриншотах. Где я все-таки накосячил? Quote Link to comment Share on other sites More sharing options...
admin Posted August 21, 2013 Author Report Share Posted August 21, 2013 сейчас я могу только сказать, что у вас не подгружаются файлы css, jsпосмотрите исходный код и проверьте доступность файлов. Возможно у вас nginx? Quote Link to comment Share on other sites More sharing options...
AlexanderVir Posted August 22, 2013 Report Share Posted August 22, 2013 (edited) сейчас я могу только сказать, что у вас не подгружаются файлы css, jsпосмотрите исходный код и проверьте доступность файлов. Возможно у вас nginx? Нет, nginx не установлен, дело в том, что даже после ввода имени пользователя и пароля абонента я попадаю в никуда: Not FoundThe requested URL /logout was not found on this server. Есть подозрения, что где то неверно прописаны пути, не могу понять где и так ли это. Все файлы на месте и доступны. Edited August 22, 2013 by AlexanderVir Quote Link to comment Share on other sites More sharing options...
admin Posted August 22, 2013 Author Report Share Posted August 22, 2013 /logout 404, если apache стоит, потому, как не включена поддержка mod_rewrite.По поводу путей, в браузере->просмотр исходного кода страницы, и откройте какой нибудь css файл.И возможно у вас кабинет установлен не на верхний уровень, а в папку? http://site/cabinet/ Quote Link to comment Share on other sites More sharing options...
xDee Posted August 23, 2013 Report Share Posted August 23, 2013 <a class="btn btn-mini" href="/user/change-status/int_status/<?=(int)!$this->accounts[$account]['int_status']?>/aid/<?=$account?>"> <?=Urfa_Resolve::resolveIntStatusForAccount($this->accounts[$account]['int_status'])?> </a> \application\modules\billing\views\scripts\index\index.phtml удалите эту часть кода Добрый день! Подскажите пожалуйста, а можно убрать только кнопку "Статус интернета" выключить ? А включить сделать недоступной ? Quote Link to comment Share on other sites More sharing options...
admin Posted August 23, 2013 Author Report Share Posted August 23, 2013 это одна и та же кнопка Quote Link to comment Share on other sites More sharing options...
ENikolay Posted October 17, 2013 Report Share Posted October 17, 2013 Доброго времени суток. Стал счастливым обладателем даного личного кабинета (ЮТМ 5.2.1-009). Пытаюсь связать его с рентсофт, но возникает проблема, при открытии раздела "услуги по подписке:Серверы RentSoft не могут соединиться с API провайдера.Проверьте, например, настройки фаервола - должен быть открыт доступ с IP-адресов RentSoft: 85.25.105.160/27Хотя порт открыт. когда закрываю порт вывод таков:Unexpected EOF or timeout while reading a socket (wanted to read more 8 bytes)!Connect: 91.216.126.250:11778RequestBody:ResponseBody:Серверы RentSoft не могут соединиться с API провайдера.Проверьте, например, настройки фаервола - должен быть открыт доступ с IP-адресов RentSoft: 85.25.105.160/27Может какие-то модули к ЮТМу нужны? отсутствуют урфа клиент и модуль платежей. может ли причина быть в этом? Личный кабинет и биллинг разнесены на разные машины. в конфиге utm5.cnf прописал:nxt_v2_bind_host=0.0.0.0nxt_v2_bind_port=11778в файле billing.ini:rentsoft.ag_name = "хххххххххх"rentsoft.secret = "уууууууууууу"nxt_v2_bind_host="хост ядра биллинга"nxt_v2_bind_port=11778rentsoft.nxt_v2_bind_host=0.0.0.0rentsoft.nxt_v2_bind_port=11778 Quote Link to comment Share on other sites More sharing options...
admin Posted October 17, 2013 Author Report Share Posted October 17, 2013 проверьте доступность портов "11758" "11778" //rentsoft.nxt_v2_bind_host=0.0.0.0 оставьте закомментированной, сам кабинет отправляет запрос на rentsoft, это ответ их серверадополнительные модули по моему не нужны Quote Link to comment Share on other sites More sharing options...
ENikolay Posted October 17, 2013 Report Share Posted October 17, 2013 (edited) ваше постом не полный вывод написал отсутствует строчка:Socket opening error: Connection refused (111) на машине с биллингом:tcp4 0 0 *.11778 *.* LISTENtcp4 0 0 *.12758 *.* LISTENtcp4 0 0 *.11758 *.* LISTENна машине с личным кабинетом в момент взода в раздел "услуги по подписке":tcp4 0 0 www.16972 xn--i1anf9b.11758 TIME_WAITtcp4 0 0 www.32826 xn--i1anf9b.11758 TIME_WAITtcp4 0 0 www.11088 xn--i1anf9b.11758 TIME_WAITtcp4 0 0 www.51283 xn--i1anf9b.11758 TIME_WAITtcp4 0 0 www.25714 xn--i1anf9b.11758 TIME_WAIT Edited October 17, 2013 by ENikolay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.