This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(!function_exists('config_path')) | |
| { | |
| /** | |
| * Return the path to config files | |
| * @param null $path | |
| * @return string | |
| */ | |
| function config_path($path=null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $url = "https://fcm.googleapis.com/fcm/send"; | |
| $token = "your device token"; | |
| $serverKey = 'your server token of FCM project'; | |
| $title = "Notification title"; | |
| $body = "Hello I am from Your php server"; | |
| $notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1'); | |
| $arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high'); | |
| $json = json_encode($arrayToSend); | |
| $headers = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //الملف ده اللى بيكون موجود فيه الدوال المساعده للشغل وغالبا بيكون مساره كالتالى | |
| // app/helper/help.php | |
| // ملحوظه (الملف ده انت اللى بتعمله عشان تحط جوا الفنكشنز اللى هتساعدك فى شغلك )0 | |
| #================ search at sql text to regx ===================================== | |
| function sql_text_to_regx($string){ | |
| $alamat = array("+","=","-","_",")","(","*","&","^","%","$","#","@","!","/","\\","|",">","<","?","؟"); | |
| $alamat_change = ""; | |
| $alef = array("ا","أ","آ","إ"); | |
| $alef_change = "@@@"; |
NewerOlder