File manager - Edit - /home/autoph/public_html/projects/golf/app/Models/Configuration.php
Back
<?php namespace App\Models; use App\Core\Model; use App\Core\Database; use App\Utilities\Session; use App\Utilities\Utility; class Configuration extends Model { public function smsSetupUpdate($arr_data) { $return_arr = array(); $type = $arr_data['type']; $header = $arr_data['header']; $body = $arr_data['body']; $footer = $arr_data['footer']; $status = $arr_data['status']; $sql = "UPDATE `golf_sms_table_settings` SET `message_header` = '$header', `message_body` = '$body', `message_footer` = '$footer', `status` = '$status' WHERE `id` = '$type'"; // echo $sql; exit; $update_sql = Database::connect()->updateBaseQuery($sql); if($update_sql > 0){ $return_arr['status'] = 1; // success } else { $return_arr['status'] = 0; // failed } return $return_arr; } public function smsSetupLoad($arr_data) { $return_arr = array(); $type = $arr_data['type']; $sql = "SELECT `message_header`, `message_body`, `message_footer`, `schedule`, `status` FROM `golf_sms_table_settings` WHERE `id` = '$type' "; // echo $sql; exit; $select_sql = Database::connect()->runBaseQuery($sql); return $select_sql; } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings