From 19f79680ffbf54ae10ee481ebc96ef3cc14151e5 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 7 Sep 2022 15:28:59 +0700 Subject: [PATCH] Hashtag for telegram --- system/boot.php | 23 ++++++++++++++++++++++- system/controllers/prepaid.php | 10 ++++++---- system/controllers/voucher.php | 6 ++++-- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/system/boot.php b/system/boot.php index 67fa438..334897a 100644 --- a/system/boot.php +++ b/system/boot.php @@ -277,5 +277,26 @@ $sys_render = 'system/controllers/' . $handler . '.php'; if (file_exists($sys_render)) { include($sys_render); } else { - exit("$sys_render"); + header("HTTP/1.0 404 Not Found"); + exit("
+
+    ___ ___ ___
+   | | |   | | |
+   |_  | | |_  |
+     |_|___| |_|
+
+
+    _____     _      _____               _
+   |   | |___| |_   |   __|___ _ _ ___ _| |
+   | | | | . |  _|  |   __| . | | |   | . |
+   |_|___|___|_|    |__|  |___|___|_|_|___|
+
+   _   ______   ____  _____          ____  ____
+   (_) |_   _ \ |_   \|_   _|        |_  _||_  _|
+   __    | |_) |  |   \ | |  __   _    \ \  / /
+  [  |   |  __'.  | |\ \| | [  | | |    > `' <
+   | |  _| |__) |_| |_\   |_ | \_/ |, _/ /'`\ \_
+  [___]|_______/|_____|\____|'.__.'_/|____||____|
+
+
"); } diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index eb74fb9..34f3aad 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -295,7 +295,7 @@ switch ($action) { $t->type = "Hotspot"; $t->save(); } - sendTelegram( "$admin[fullname] Recharge Voucher Hotspot for $c[username]\n".$p['name_plan']. + sendTelegram( "$admin[fullname] #Recharge Voucher #Hotspot for #$c[username]\n".$p['name_plan']. "\nRouter: ".$server. "\nPrice: ".$p['price']); } else { @@ -398,7 +398,7 @@ switch ($action) { $t->type = "PPPOE"; $t->save(); } - sendTelegram( "$admin[fullname] Recharge Voucher PPPOE for $c[username]\n".$p['name_plan']. + sendTelegram( "$admin[fullname] #Recharge Voucher #PPPOE for #$c[username]\n".$p['name_plan']. "\nRouter: ".$server. "\nPrice: ".$p['price']); } @@ -934,7 +934,8 @@ switch ($action) { $v1->user = $c['username']; $v1->save(); - sendTelegram( "$admin[fullname] Refill Voucher Hotspot for $c[username]\n".$p['name_plan']. + sendTelegram( "$admin[fullname] #Refill #Voucher #Hotspot for #$c[username]\n".$p['name_plan']. + "\nCode: ".$code. "\nRouter: ".$v1['routers']. "\nPrice: ".$p['price']); } else { @@ -1042,7 +1043,8 @@ switch ($action) { $v1->save(); - sendTelegram( "$admin[fullname] Refill Voucher PPPOE for $c[username]\n".$p['name_plan']. + sendTelegram( "$admin[fullname] Refill #Voucher #PPPOE for #$c[username]\n".$p['name_plan']. + "\nCode: ".$code. "\nRouter: ".$v1['routers']. "\nPrice: ".$p['price']); } diff --git a/system/controllers/voucher.php b/system/controllers/voucher.php index 28d9d9f..9bb8721 100644 --- a/system/controllers/voucher.php +++ b/system/controllers/voucher.php @@ -247,7 +247,8 @@ switch ($action) { $v1->user = $c['username']; $v1->save(); // Telegram to Admin - sendTelegram( $c['username']." Activate Voucher Hotspot\n".$p['name_plan']. + sendTelegram( '#'.$c['username']." Activate #Voucher #Hotspot\n".$p['name_plan']. + "\nCode: ".$code. "\nRouter: ".$v1['routers']. "\nPrice: ".$p['price']); } else { @@ -351,7 +352,8 @@ switch ($action) { $v1->user = $c['username']; $v1->save(); // Telegram to Admin - sendTelegram( $c['username']." Activate Voucher PPPOE\n".$p['name_plan']. + sendTelegram( '#'.$c['username']." Activate #Voucher #PPPOE\n".$p['name_plan']. + "\nCode: ".$code. "\nRouter: ".$v1['routers']. "\nPrice: ".$p['price']); }