diff --git a/system/boot.php b/system/boot.php index d28761ca..9d0fd4de 100644 --- a/system/boot.php +++ b/system/boot.php @@ -71,11 +71,11 @@ function _notify($msg, $type = 'e') } require_once('system/vendors/smarty/libs/Smarty.class.php'); -$_theme = APP_URL . '/ui/theme/' . $config['theme']; +$_theme = APP_URL . '/ui/ui'; $lan_file = 'system/lan/' . $config['language'] . '/common.lan.php'; require($lan_file); $ui = new Smarty(); -$ui->setTemplateDir('ui/theme/' . $config['theme'] . '/'); +$ui->setTemplateDir('ui/ui/'); $ui->setCompileDir('ui/compiled/'); $ui->setConfigDir('ui/conf/'); $ui->setCacheDir('ui/cache/'); diff --git a/ui/theme/default/app-settings.tpl b/ui/theme/default/app-settings.tpl deleted file mode 100644 index 5cf1fcca..00000000 --- a/ui/theme/default/app-settings.tpl +++ /dev/null @@ -1,94 +0,0 @@ -{include file="sections/header.tpl"} - -
-{include file="sections/footer.tpl"} diff --git a/ui/theme/index.html b/ui/theme/index.html deleted file mode 100644 index 97579708..00000000 --- a/ui/theme/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - -Directory access is forbidden.
- - \ No newline at end of file diff --git a/ui/theme/theme1/index.html b/ui/theme/theme1/index.html deleted file mode 100644 index 97579708..00000000 --- a/ui/theme/theme1/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - -Directory access is forbidden.
- - \ No newline at end of file diff --git a/ui/theme/default/404.tpl b/ui/ui/404.tpl similarity index 97% rename from ui/theme/default/404.tpl rename to ui/ui/404.tpl index a62cda66..87e202e4 100644 --- a/ui/theme/default/404.tpl +++ b/ui/ui/404.tpl @@ -1,10 +1,10 @@ -{include file="sections/user-header.tpl"} - - - +{include file="sections/user-header.tpl"} + + + {include file="sections/user-footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/a404.tpl b/ui/ui/a404.tpl similarity index 97% rename from ui/theme/default/a404.tpl rename to ui/ui/a404.tpl index fd30fa24..ba016d8f 100644 --- a/ui/theme/default/a404.tpl +++ b/ui/ui/a404.tpl @@ -1,10 +1,10 @@ -{include file="sections/header.tpl"} - - - +{include file="sections/header.tpl"} + + + {include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/theme/default/admin.tpl b/ui/ui/admin.tpl similarity index 97% rename from ui/theme/default/admin.tpl rename to ui/ui/admin.tpl index 1b7e3ec4..541ed45c 100644 --- a/ui/theme/default/admin.tpl +++ b/ui/ui/admin.tpl @@ -1,72 +1,72 @@ - - - - - -{$_L['BW_Name']} | -{$_L['Rate_Download']} | -{$_L['Rate_Upload']} | -{$_L['Manage']} | -
---|---|---|---|
{$ds['name_bw']} | -{$ds['rate_down']} {$ds['rate_down_unit']} | -{$ds['rate_up']} {$ds['rate_up_unit']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['BW_Name']} | +{$_L['Rate_Download']} | +{$_L['Rate_Upload']} | +{$_L['Manage']} | +
---|---|---|---|
{$ds['name_bw']} | +{$ds['rate_down']} {$ds['rate_down_unit']} | +{$ds['rate_up']} {$ds['rate_up_unit']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
{$_L['Username']} | -{$_L['Full_Name']} | -{$_L['Phone_Number']} | -{$_L['Created_On']} | -{$_L['Recharge']} | -{$_L['Manage']} | -
---|---|---|---|---|---|
{$ds['username']} | -{$ds['fullname']} | -{$ds['phonenumber']} | -{$ds['created_at']} | -{$_L['Recharge']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['Username']} | +{$_L['Full_Name']} | +{$_L['Phone_Number']} | +{$_L['Created_On']} | +{$_L['Recharge']} | +{$_L['Manage']} | +
---|---|---|---|---|---|
{$ds['username']} | +{$ds['fullname']} | +{$ds['phonenumber']} | +{$ds['created_at']} | +{$_L['Recharge']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
{$_L['Plan_Name']} | -unused | -used | -
---|---|---|
{$stok['name_plan']} | -{$stok['unused']} | -{$stok['used']} | -
Total | -{$stocks['unused']} | -{$stocks['used']} | -
Id | -{$_L['Username']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -
---|---|---|---|
{$no++} | -{$expired['username']} | -{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']} | -{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']} | -
{$dlogs['description']}
-{$_L['Welcome_Text_User']}
-{$_L['Username']}
-{$_bill['username']}
-{$_L['Plan_Name']}
-{$_bill['namebp']}
-{$_L['Created_On']}
-{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}
-{$_L['Expires_On']}
-{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}
-{$_L['Plan_Name']} | +unused | +used | +
---|---|---|
{$stok['name_plan']} | +{$stok['unused']} | +{$stok['used']} | +
Total | +{$stocks['unused']} | +{$stocks['used']} | +
Id | +{$_L['Username']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +
---|---|---|---|
{$no++} | +{$expired['username']} | +{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']} | +{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']} | +
{$dlogs['description']}
+{$_L['Welcome_Text_User']}
+{$_L['Username']}
+{$_bill['username']}
+{$_L['Plan_Name']}
+{$_bill['namebp']}
+{$_L['Created_On']}
+{date($_c['date_format'], strtotime($_bill['recharged_on']))} {$_bill['time']}
+{$_L['Expires_On']}
+{date($_c['date_format'], strtotime($_bill['expiration']))} {$_bill['time']}
+{$_L['Table_Name']} | -{$_L['Rows']} | -{$_L['Size']} | -
---|---|---|
{$tbl['name']} | -{$tbl['rows']} | -{$tbl['size']} Kb | -
{$_L['Table_Name']} | +{$_L['Rows']} | +{$_L['Size']} | +
---|---|---|
{$tbl['name']} | +{$tbl['rows']} | +{$tbl['size']} Kb | +
{$_L['Plan_Name']} | -{$_L['Plan_Type']} | -{$_L['Bandwidth_Plans']} | -{$_L['Plan_Price']} | -{$_L['Time_Limit']} | -{$_L['Data_Limit']} | -{$_L['Plan_Validity']} | -{$_L['Routers']} | -{$_L['Manage']} | -
---|---|---|---|---|---|---|---|---|
{$ds['name_plan']} | -{$ds['typebp']} | -{$ds['name_bw']} | -{$ds['price']} | -{$ds['time_limit']} {$ds['time_unit']} | -{$ds['data_limit']} {$ds['data_unit']} | -{$ds['validity']} {$ds['validity_unit']} | -{$ds['routers']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['Plan_Name']} | +{$_L['Plan_Type']} | +{$_L['Bandwidth_Plans']} | +{$_L['Plan_Price']} | +{$_L['Time_Limit']} | +{$_L['Data_Limit']} | +{$_L['Plan_Validity']} | +{$_L['Routers']} | +{$_L['Manage']} | +
---|---|---|---|---|---|---|---|---|
{$ds['name_plan']} | +{$ds['typebp']} | +{$ds['name_bw']} | +{$ds['price']} | +{$ds['time_limit']} {$ds['time_unit']} | +{$ds['data_limit']} {$ds['data_unit']} | +{$ds['validity']} {$ds['validity_unit']} | +{$ds['routers']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
- - | -
+ + | +
# | -{$_L['Pool_Name']} | -{$_L['Range_IP']} | -{$_L['Routers']} | -{$_L['Manage']} | -
---|---|---|---|---|
{$no++} | -{$ds['pool_name']} | -{$ds['range_ip']} | -{$ds['routers']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
# | +{$_L['Pool_Name']} | +{$_L['Range_IP']} | +{$_L['Routers']} | +{$_L['Manage']} | +
---|---|---|---|---|
{$no++} | +{$ds['pool_name']} | +{$ds['range_ip']} | +{$ds['routers']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
{$_L['Plan_Name']} | -{$_L['Bandwidth_Plans']} | -{$_L['Plan_Price']} | -{$_L['Plan_Validity']} | -{$_L['Pool']} | -{$_L['Routers']} | -{$_L['Manage']} | -
---|---|---|---|---|---|---|
{$ds['name_plan']} | -{$ds['name_bw']} | -{$ds['price']} | -{$ds['validity']} {$ds['validity_unit']} | -{$ds['pool']} | -{$ds['routers']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['Plan_Name']} | +{$_L['Bandwidth_Plans']} | +{$_L['Plan_Price']} | +{$_L['Plan_Validity']} | +{$_L['Pool']} | +{$_L['Routers']} | +{$_L['Manage']} | +
---|---|---|---|---|---|---|
{$ds['name_plan']} | +{$ds['name_bw']} | +{$ds['price']} | +{$ds['validity']} {$ds['validity_unit']} | +{$ds['pool']} | +{$ds['routers']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
{$_L['Username']} | -{$_L['Plan_Name']} | -{$_L['Type']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -{$_L['Method']} | -{$_L['Routers']} | -{$_L['Manage']} | -
---|---|---|---|---|---|---|---|
{$ds['username']} | -{$ds['namebp']} | -{$ds['type']} | -{$ds['recharged_on']} {$ds['time']} | -{$ds['expiration']} {$ds['time']} | -{$ds['method']} | -{$ds['routers']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['Username']} | +{$_L['Plan_Name']} | +{$_L['Type']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +{$_L['Method']} | +{$_L['Routers']} | +{$_L['Manage']} | +
---|---|---|---|---|---|---|---|
{$ds['username']} | +{$ds['namebp']} | +{$ds['type']} | +{$ds['recharged_on']} {$ds['time']} | +{$ds['expiration']} {$ds['time']} | +{$ds['method']} | +{$ds['routers']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +
{$_L['Username']} | -{$_L['Plan_Name']} | -{$_L['Type']} | -{$_L['Plan_Price']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -{$_L['Method']} | -{$_L['Routers']} | - {foreach $d as $ds} -
---|---|---|---|---|---|---|---|
{$ds['username']} | -{$ds['plan_name']} | -{$ds['type']} | -{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | -{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | -{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | -{$ds['method']} | -{$ds['routers']} | -
{$_L['Username']} | +{$_L['Plan_Name']} | +{$_L['Type']} | +{$_L['Plan_Price']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +{$_L['Method']} | +{$_L['Routers']} | + {foreach $d as $ds} +
---|---|---|---|---|---|---|---|
{$ds['username']} | +{$ds['plan_name']} | +{$ds['type']} | +{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | +{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | +{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | +{$ds['method']} | +{$ds['routers']} | +
{$_L['Username']} | -{$_L['Plan_Name']} | -{$_L['Type']} | -{$_L['Plan_Price']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -{$_L['Method']} | -{$_L['Routers']} | - {foreach $d as $ds} -
---|---|---|---|---|---|---|---|
{$ds['username']} | -{$ds['plan_name']} | -{$ds['type']} | -{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | -{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | -{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | -{$ds['method']} | -{$ds['routers']} | -
{$_L['Username']} | +{$_L['Plan_Name']} | +{$_L['Type']} | +{$_L['Plan_Price']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +{$_L['Method']} | +{$_L['Routers']} | + {foreach $d as $ds} +
---|---|---|---|---|---|---|---|
{$ds['username']} | +{$ds['plan_name']} | +{$ds['type']} | +{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | +{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | +{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | +{$ds['method']} | +{$ds['routers']} | +
{$_L['All_Transactions_at_Date']}:
-{date($_c['date_format'], strtotime($mdate))} {$mtime}
-{$_L['Username']} | -{$_L['Type']} | -{$_L['Plan_Name']} | -{$_L['Plan_Price']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -{$_L['Method']} | -{$_L['Routers']} | -
---|---|---|---|---|---|---|---|
{$ds['username']} | -{$ds['type']} | -{$ds['plan_name']} | -{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | -{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | -{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | -{$ds['method']} | -{$ds['routers']} | -
{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}
-{$_L['All_Transactions_at_Date']}:
+{date($_c['date_format'], strtotime($mdate))} {$mtime}
+{$_L['Username']} | +{$_L['Type']} | +{$_L['Plan_Name']} | +{$_L['Plan_Price']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +{$_L['Method']} | +{$_L['Routers']} | +
---|---|---|---|---|---|---|---|
{$ds['username']} | +{$ds['type']} | +{$ds['plan_name']} | +{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])} | +{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | +{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | +{$ds['method']} | +{$ds['routers']} | +
{$_L['All_Transactions_at_Date']}: {date($_c['date_format'], strtotime($mdate))} {$mtime}
+{$_L['All_Transactions_at_Date']}:
-{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]
-{$_L['Username']} | -{$_L['Type']} | -{$_L['Plan_Name']} | -{$_L['Plan_Price']} | -{$_L['Created_On']} | -{$_L['Expires_On']} | -{$_L['Method']} | -{$_L['Routers']} | -
---|---|---|---|---|---|---|---|
{$ds['username']} | -{$ds['type']} | -{$ds['plan_name']} | -{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])} | -{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | -{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | -{$ds['method']} | -{$ds['routers']} | -
{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]
-{$_L['All_Transactions_at_Date']}:
+{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]
+{$_L['Username']} | +{$_L['Type']} | +{$_L['Plan_Name']} | +{$_L['Plan_Price']} | +{$_L['Created_On']} | +{$_L['Expires_On']} | +{$_L['Method']} | +{$_L['Routers']} | +
---|---|---|---|---|---|---|---|
{$ds['username']} | +{$ds['type']} | +{$ds['plan_name']} | +{$_c['currency_code']} {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])} | +{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']} | +{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']} | +{$ds['method']} | +{$ds['routers']} | +
{$stype} [{date( $_c['date_format'], strtotime($fdate))} - {date( $_c['date_format'], strtotime($tdate))}]
+{$_L['Router_Name']} | -{$_L['IP_Address']} | -{$_L['Username']} | -{$_L['Description']} | -{$_L['Manage']} | -
---|---|---|---|---|
{$ds['name']} | -{$ds['ip_address']} | -{$ds['username']} | -{$ds['description']} | -- {$_L['Edit']} - {$_L['Delete']} - | -
{$_L['Router_Name']} | +{$_L['IP_Address']} | +{$_L['Username']} | +{$_L['Description']} | +{$_L['Manage']} | +
---|---|---|---|---|
{$ds['name']} | +{$ds['ip_address']} | +{$ds['username']} | +{$ds['description']} | ++ {$_L['Edit']} + {$_L['Delete']} + | +