diff --git a/admin/index.php b/admin/index.php index 39676261..3a7691db 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ header('location: ../index.php?_route=admin/'); \ No newline at end of file diff --git a/index.php b/index.php index 160aea56..c9fd7289 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1); diff --git a/system/autoload/Admin.php b/system/autoload/Admin.php index 1ab32035..4b8b8cd5 100644 --- a/system/autoload/Admin.php +++ b/system/autoload/Admin.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class Admin{ diff --git a/system/autoload/App.php b/system/autoload/App.php index 706b32ce..a57f0aee 100644 --- a/system/autoload/App.php +++ b/system/autoload/App.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class App{ diff --git a/system/autoload/Paginator.php b/system/autoload/Paginator.php index 569288cc..75e5ec7a 100644 --- a/system/autoload/Paginator.php +++ b/system/autoload/Paginator.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class Paginator diff --git a/system/autoload/Password.php b/system/autoload/Password.php index 07752812..98492114 100644 --- a/system/autoload/Password.php +++ b/system/autoload/Password.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class Password{ diff --git a/system/autoload/Router.php b/system/autoload/Router.php index 09d98917..4e623b5c 100644 --- a/system/autoload/Router.php +++ b/system/autoload/Router.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class Router{ diff --git a/system/autoload/Timezone.php b/system/autoload/Timezone.php index b914d2f7..b9fb612b 100644 --- a/system/autoload/Timezone.php +++ b/system/autoload/Timezone.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ class Timezone { diff --git a/system/autoload/User.php b/system/autoload/User.php index 2abdc379..ac9b262a 100644 --- a/system/autoload/User.php +++ b/system/autoload/User.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ Class User{ diff --git a/system/autoload/Validator.php b/system/autoload/Validator.php index d58f439e..0f904551 100644 --- a/system/autoload/Validator.php +++ b/system/autoload/Validator.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ /** diff --git a/system/boot.php b/system/boot.php index 71ec8a29..56115f26 100644 --- a/system/boot.php +++ b/system/boot.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ session_start(); function r2($to,$ntype='e',$msg=''){ diff --git a/system/controllers/accounts.php b/system/controllers/accounts.php index 8920f37e..ba53775f 100644 --- a/system/controllers/accounts.php +++ b/system/controllers/accounts.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _auth(); $ui->assign('_title', $_L['My_Account'].'- '. $config['CompanyName']); diff --git a/system/controllers/admin.php b/system/controllers/admin.php index ab3532d2..eab37856 100644 --- a/system/controllers/admin.php +++ b/system/controllers/admin.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ if (isset($routes['1'])) { $do = $routes['1']; diff --git a/system/controllers/autoload.php b/system/controllers/autoload.php index f1d33b19..4cfcd61a 100644 --- a/system/controllers/autoload.php +++ b/system/controllers/autoload.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']); diff --git a/system/controllers/bandwidth.php b/system/controllers/bandwidth.php index 5f8fdae4..d1b82b76 100644 --- a/system/controllers/bandwidth.php +++ b/system/controllers/bandwidth.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Bandwidth_Plans'].' - '. $config['CompanyName']); diff --git a/system/controllers/customers.php b/system/controllers/customers.php index d0df0663..72526438 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Customers'].' - '. $config['CompanyName']); diff --git a/system/controllers/dashboard.php b/system/controllers/dashboard.php index a95ded1b..08953148 100644 --- a/system/controllers/dashboard.php +++ b/system/controllers/dashboard.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']); diff --git a/system/controllers/default.php b/system/controllers/default.php index e77ae54f..234efe49 100644 --- a/system/controllers/default.php +++ b/system/controllers/default.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ r2(APP_URL.'/index.php?_route=dashboard'); diff --git a/system/controllers/disquss.php b/system/controllers/disquss.php index 6476e311..877143bf 100644 --- a/system/controllers/disquss.php +++ b/system/controllers/disquss.php @@ -1,6 +1,6 @@ * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt diff --git a/system/controllers/export.php b/system/controllers/export.php index ee844404..1132e19a 100644 --- a/system/controllers/export.php +++ b/system/controllers/export.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Reports'].'- '. $config['CompanyName']); diff --git a/system/controllers/home.php b/system/controllers/home.php index 7df203ab..d99ad60e 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _auth(); $ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']); diff --git a/system/controllers/login.php b/system/controllers/login.php index c3b7763a..3c23850d 100644 --- a/system/controllers/login.php +++ b/system/controllers/login.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ if (isset($routes['1'])) { diff --git a/system/controllers/logout.php b/system/controllers/logout.php index 461acee7..614c7486 100644 --- a/system/controllers/logout.php +++ b/system/controllers/logout.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ if (session_status() == PHP_SESSION_NONE) session_start(); session_destroy(); diff --git a/system/controllers/message.php b/system/controllers/message.php index bc588f9f..407747f5 100644 --- a/system/controllers/message.php +++ b/system/controllers/message.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']); diff --git a/system/controllers/page.php b/system/controllers/page.php index e8781906..c1aa7651 100644 --- a/system/controllers/page.php +++ b/system/controllers/page.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _auth(); $ui->assign('_title', $_L['Order_Voucher'].'- '. $config['CompanyName']); diff --git a/system/controllers/pages.php b/system/controllers/pages.php index 1a4745dc..eaaaf67d 100644 --- a/system/controllers/pages.php +++ b/system/controllers/pages.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', 'Pages - '. $config['CompanyName']); diff --git a/system/controllers/pm.php b/system/controllers/pm.php index 7d22fdfe..d98444a2 100644 --- a/system/controllers/pm.php +++ b/system/controllers/pm.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _auth(); $ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']); diff --git a/system/controllers/pool.php b/system/controllers/pool.php index 4b7cd13a..440c626e 100644 --- a/system/controllers/pool.php +++ b/system/controllers/pool.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']); diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index 6c78d211..03eb79d2 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -1,11 +1,9 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Recharge_Account'].' - '. $config['CompanyName']); diff --git a/system/controllers/register.php b/system/controllers/register.php index 75c65d73..60a80799 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -1,6 +1,6 @@ sendSync($addRequest - ->setArgument('name', $c['username']) - ->setArgument('profile', $p['name_plan']) - ->setArgument('password', $c['password']) - ); + if($p['typebp']=="Limited"){ + if($p['limit_type']=="Time_Limit"){ + if($p['time_unit']=='Hrs') + $timelimit = $p['time_limit'].":00:00"; + else + $timelimit = "00:".$p['time_limit'].":00"; + $client->sendSync($addRequest + ->setArgument('name', $c['username']) + ->setArgument('profile', $p['name_plan']) + ->setArgument('password', $c['password']) + ->setArgument('limit-uptime', $timelimit) + ); + }else if($p['limit_type']=="Data_Limit"){ + if($p['data_unit']=='GB') + $datalimit = $p['data_limit']."000000000"; + else + $datalimit = $p['data_limit']."000000"; + $client->sendSync($addRequest + ->setArgument('name', $c['username']) + ->setArgument('profile', $p['name_plan']) + ->setArgument('password', $c['password']) + ->setArgument('limit-bytes-total', $datalimit) + ); + }else if($p['limit_type']=="Both_Limit"){ + if($p['time_unit']=='Hrs') + $timelimit = $p['time_limit'].":00:00"; + else + $timelimit = "00:".$p['time_limit'].":00"; + if($p['data_unit']=='GB') + $datalimit = $p['data_limit']."000000000"; + else + $datalimit = $p['data_limit']."000000"; + $client->sendSync($addRequest + ->setArgument('name', $c['username']) + ->setArgument('profile', $p['name_plan']) + ->setArgument('password', $c['password']) + ->setArgument('limit-uptime', $timelimit) + ->setArgument('limit-bytes-total', $datalimit) + ); + } + }else{ + $client->sendSync($addRequest + ->setArgument('name', $c['username']) + ->setArgument('profile', $p['name_plan']) + ->setArgument('password', $c['password']) + ); + } $d = ORM::for_table('tbl_user_recharges')->create(); $d->customer_id = $user; diff --git a/system/controllers/reports.php b/system/controllers/reports.php index 03cfb11d..527df4bb 100644 --- a/system/controllers/reports.php +++ b/system/controllers/reports.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Reports'].' - '. $config['CompanyName']); diff --git a/system/controllers/routers.php b/system/controllers/routers.php index bc890106..04fbc970 100644 --- a/system/controllers/routers.php +++ b/system/controllers/routers.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']); diff --git a/system/controllers/services.php b/system/controllers/services.php index a76f8ca9..235ce4e4 100644 --- a/system/controllers/services.php +++ b/system/controllers/services.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Hotspot_Plans'].' - '. $config['CompanyName']); diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 8dc093bc..e761debe 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _admin(); $ui->assign('_title', $_L['Settings'].'- '. $config['CompanyName']); diff --git a/system/controllers/voucher.php b/system/controllers/voucher.php index 19e68c64..c7926e07 100644 --- a/system/controllers/voucher.php +++ b/system/controllers/voucher.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ _auth(); $ui->assign('_title', $_L['Voucher'].'- '. $config['CompanyName']); diff --git a/system/cron.php b/system/cron.php index 6ba4e684..62d13d87 100644 --- a/system/cron.php +++ b/system/cron.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ require('config.php'); diff --git a/system/install/step4.php b/system/install/step4.php index b188324d..fed96784 100644 --- a/system/install/step4.php +++ b/system/install/step4.php @@ -1,11 +1,11 @@ -* @version 5.0 +* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/) + + * @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * @license GNU General Public License version 2 or later; see LICENSE.txt -* @donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4 + **/ //error_reporting (0); $appurl = $_POST['appurl'];