File manager - Edit - /home/autoph/public_html/projects/Rating-AutoHub/public/css/configuration.zip
Back
PK % �Z�(��� � update_website_information.phpnu �[��� <?php include_once("../../cfg/db.php"); $return_arr["status"]=0; $return_arr["message"]=" No Action."; if(!isset($_POST['website-name'])){ exit(); } $post_website_name = $db -> escape(trim($_POST['website-name'])); $post_website_link = $db -> escape(trim($_POST['website-link'])); $post_signup_title = $db -> escape(trim($_POST['title'])); $post_signup_content = $db -> escape(trim($_POST['content'])); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_name' where `name` = 'site_name'"); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_link' where `name` = 'site_link'"); $db -> sql_query("UPDATE `settings_legals` SET title='$post_signup_title',`content`='$post_signup_content' where `name` = 'signup'"); if(isNotEmpty($_FILES['upload_picture']['name'])){ // Getting file name $filename = $_FILES['upload_picture']['name']; $maxsize = 6097152; if($_FILES['upload_picture']['size'] >= $maxsize || $_FILES['upload_picture']['size'] == 0 ){ $return_arr["status"]=0; $return_arr["message"]=" Image file too large. Image must less than 2 megabytes."; echo json_encode($return_arr); return; } $quality = 60; if($_FILES['upload_picture']['size'] >= $maxsize/2){ $quality = 30; } // Valid extension $valid_ext = array('png','jpeg','jpg'); // file extension $file_extension = pathinfo($filename, PATHINFO_EXTENSION); $file_extension = strtolower($file_extension); $RandomAccountNumber = uniqid(); $post_picture = $RandomAccountNumber.'.'.$file_extension; // Location $location = "../../dist/img/".$post_picture; // Check extension if(in_array($file_extension,$valid_ext)){ // Compress Image compressImage($_FILES['upload_picture']['tmp_name'],$location,$quality); }else{ $return_arr["status"]=0; $return_arr["message"]=" Invalid file type."; } $query_website_photo = "UPDATE `settings` SET `value`='$post_picture' where `name` = 'logo' "; $db -> sql_query($query_website_photo); } $return_arr["status"]=1; $return_arr["message"]=" Successfully updated."; echo json_encode($return_arr); // Compress image function compressImage($source, $destination, $quality) { $info = getimagesize($source); if ($info['mime'] == 'image/jpeg') $image = imagecreatefromjpeg($source); elseif ($info['mime'] == 'image/jpg') $image = imagecreatefromgif($source); elseif ($info['mime'] == 'image/png') $image = imagecreatefrompng($source); imagejpeg($image, $destination, $quality); } function isNotEmpty($data){ return preg_match('/\S/', $data); } ?>PK % �Zv�Z`r r .htaccessnu �[��� <filesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$"> Order Allow,Deny Deny from all </filesMatch>PK % �ZU� � update_sms_information.phpnu �[��� <?php include_once("../../cfg/db.php"); $return_arr["status"] = 0; $return_arr["message"] = " No Action."; $post_api_key = $db->escape(trim($_POST['key'])); $post_api_password = $db->escape(trim($_POST['password'])); $post_activation_message = $db->escape(trim($_POST['activation-message'])); $post_api_uri = $db->escape(trim($_POST['uri'])); $post_api_success_response = $db->escape(trim($_POST['success_response'])); $post_api_request_body = $db->escape(trim($_POST['request_body'])); $post_api_http_header = $utility_class->isNotEmpty($db->escape(trim($_POST['http_header']))) ? $db->escape(trim($_POST['http_header'])) : '[]'; $db->sql_query("UPDATE `settings` SET `value`='$post_api_key' where `name` = 'sms_api_key'"); $db->sql_query("UPDATE `settings_notification` SET `value`='$post_activation_message' where `name` = 'activation_sms_message'"); $db->sql_query("UPDATE `settings` SET `value`='$post_api_uri' where `name` = 'sms_api_uri'"); $db->sql_query("UPDATE `settings` SET `value`='$post_api_success_response' where `name` = 'sms_api_success_response'"); $db->sql_query("UPDATE `settings` SET `value`='$post_api_request_body' where `name` = 'sms_api_request_body'"); $db->sql_query("UPDATE `settings` SET `value`='$post_api_http_header' where `name` = 'sms_api_http_header'"); if ($post_api_password <> '') { $db->sql_query("UPDATE `settings` SET `value`='$post_api_password' where `name` = 'sms_api_password'"); } $return_arr["status"] = 1; $return_arr["message"] = " Successfully updated."; echo json_encode($return_arr); PK % �ZI (� � index.phpnu �[��� <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Access forbidden!</title> <style type="text/css"><!--/*--><![CDATA[/*><!--*/ body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } p, address {margin-left: 3em;} span {font-size: smaller;} /*]]>*/--></style> </head> <body> <h1>Access forbidden!</h1> <p> You don't have permission to access the requested object. It is either read-protected or not readable by the server. </p> </body></html> PK % �Z��| update_mailer_information.phpnu �[��� <?php include_once("../../cfg/db.php"); $return_arr["status"]=0; $return_arr["message"]=" No Action."; $post_website_use_mailer = $db -> escape(trim($_POST['use-mailer'])); $post_website_host = $db -> escape(trim($_POST['host'])); $post_website_port = $db -> escape(trim($_POST['port'])); $post_website_address = $db -> escape(trim($_POST['address'])); $post_website_password = $db -> escape(trim($_POST['password'])); $post_website_name = $db -> escape(trim($_POST['name'])); $post_website_from_address = $db -> escape(trim($_POST['from-address'])); $post_website_activation_subject = $db -> escape(trim($_POST['activation-subject'])); $post_website_activation_message = $db -> escape(trim($_POST['activation-message'])); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_use_mailer' where `name` = 'email_use_smtp'"); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_host' where `name` = 'email_host'"); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_port' where `name` = 'email_port'"); $db -> sql_query("UPDATE `settings` SET `value`='$post_website_address' where `name` = 'system_email'"); if( $post_website_password <> ''){ $new_password = trim($db -> cipher($post_website_password,true)); $db -> sql_query("UPDATE `settings` SET `value`='$new_password' where `name` = 'system_email_password'"); } $db -> sql_query("UPDATE `settings_notification` SET `value`='$post_website_name' where `name` = 'system_email_name'"); $db -> sql_query("UPDATE `settings_notification` SET `value`='$post_website_from_address' where `name` = 'system_from_email'"); $db -> sql_query("UPDATE `settings_notification` SET `value`='$post_website_activation_subject' where `name` = 'activation_email_subject'"); $db -> sql_query("UPDATE `settings_notification` SET `value`='$post_website_activation_message' where `name` = 'activation_email_message'"); $return_arr["status"]=1; $return_arr["message"]=" Successfully updated."; echo json_encode($return_arr); ?>PK % �Z�(��� � update_website_information.phpnu �[��� PK % �Zv�Z`r r H .htaccessnu �[��� PK % �ZU� � � update_sms_information.phpnu �[��� PK % �ZI (� � L index.phpnu �[��� PK % �Z��| S update_mailer_information.phpnu �[��� PK � �
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings