diff --git a/system/cron.php b/system/cron.php index 4a5e98e7..caae5c05 100644 --- a/system/cron.php +++ b/system/cron.php @@ -21,7 +21,7 @@ $textExpired = Lang::getNotifText('expired'); $d = ORM::for_table('tbl_user_recharges')->where('status', 'on')->where_lte('expiration', date("Y-m-d"))->find_many(); echo "Found " . count($d) . " user(s)\n"; -//run_hook('cronjob'); #HOOK +run_hook('cronjob'); #HOOK foreach ($d as $ds) { $date_now = strtotime(date("Y-m-d H:i:s")); @@ -55,7 +55,7 @@ foreach ($d as $ds) { $p['price'] += $add_cost; } } - if ($p && $p['enabled'] && $c['balance'] >= $p['price']) { + if ($p && $c['balance'] >= $p['price']) { if (Package::rechargeUser($ds['customer_id'], $ds['routers'], $p['id'], 'Customer', 'Balance')) { // if success, then get the balance Balance::min($ds['customer_id'], $p['price']); diff --git a/system/lan/english.json b/system/lan/english.json index 8f47f307..ff849801 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -120,5 +120,20 @@ "Optional": "Optional", "Expired_Internet_Plan": "Expired Internet Plan", "When_Expired__customer_will_be_move_to_selected_internet_plan": "When Expired, customer will be move to selected internet plan", - "Data_Updated_Successfully": "Data Updated Successfully" + "Data_Updated_Successfully": "Data Updated Successfully", + "Plugin_Installer": "Plugin Installer", + "Plugin": "Plugin", + "Search_by_Username": "Search by Username", + "Created_On": "Created On", + "Expires_On": "Expires On", + "Method": "Method", + "Extend": "Extend", + "Status_Voucher": "Status Voucher", + "Generated_By": "Generated By", + "View": "View", + "Buy_Balance": "Buy Balance", + "Buy_Package": "Buy Package", + "Order_History": "Order History", + "List_Activated_Voucher": "List Activated Voucher", + "Invoice": "Invoice" } \ No newline at end of file