diff --git a/system/controllers/pages.php b/system/controllers/pages.php index 923002c2..86578eb6 100644 --- a/system/controllers/pages.php +++ b/system/controllers/pages.php @@ -15,7 +15,14 @@ if(strpos($action,"-post")===false){ //echo $path; run_hook('view_edit_pages'); #HOOK if(!file_exists($path)){ - touch($path); + $temp = "pages_template/".str_replace(".","",$action).".html"; + if(file_exists($temp)){ + if(!copy($temp, $path)){ + touch($path); + } + }else{ + touch($path); + } } if(file_exists($path)){ $html = file_get_contents($path); diff --git a/system/lan/english/common.lan.php b/system/lan/english/common.lan.php index 71a9a4c1..1c92e64a 100644 --- a/system/lan/english/common.lan.php +++ b/system/lan/english/common.lan.php @@ -310,7 +310,6 @@ $_L['Please_enter_your_email_address'] = 'Please enter your email address'; $_L['Failed_to_create_Paypal_transaction'] = 'Failed to create Paypal transaction.'; $_L['Plugin'] = 'Plugin'; $_L['Plugin_Manager'] = 'Plugin Manager'; -$_L['Plugin_Manager'] = 'Plugin Manager'; $_L['User_Notification'] = 'User Notification'; $_L['Expired_Notification'] = 'Expired Notification'; $_L['User_will_get_notification_when_package_expired'] = 'User will get notification when package expired'; @@ -386,7 +385,6 @@ $_L['Minimum_Balance_Transfer'] = 'Minimum Balance Transfer'; $_L['Minimum_Transfer'] = 'Minimum Transfer'; $_L['Company_Logo'] = 'Company Logo'; $_L['Expired_IP_Pool'] = 'Expired IP Pool'; -$_L['Expired_IP_Pool'] = 'Expired IP Pool'; $_L['Proxy'] = 'Proxy'; $_L['Proxy_Server'] = 'Proxy Server'; $_L['Proxy_Server_Login'] = 'Proxy Server Login'; @@ -400,5 +398,7 @@ $_L['Recharge_a_friend'] = 'Recharge a friend'; $_L['Buy_for_friend'] = 'Buy for friend'; $_L['Buy_this_for_friend_account'] = 'Buy this for friend account?'; $_L['Review_package_before_recharge'] = 'Review package before recharge'; +$_L['Activate'] = 'Activate'; $_L['Deactivate'] = 'Deactivate'; $_L['Sync'] = 'Sync'; +$_L['Failed_to_create_PaymeTrust_transaction'] = 'Failed to create PaymeTrust transaction.';