| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/citysuper/webadmin/ |
Upload File : |
<?php
require_once("check_login.php");
require_once("function_cropimg.php");
require_once("mime_type_lib.php");
$message = "";
if (empty($_POST["text_font"])) {
$message .= "Please select a font for the content.\\n\\n";
}
if (empty($_POST["text_align"])) {
$message .= "Please select a alignment for the content.\\n\\n";
}
if (!empty($message)) {
echo "<script>alert('" . $message . "'); history.back();</script>";
exit;
}
$id = $_POST["id"];
$sql = "update text_config set text_content=?, text_font=?, text_align=?, lastupdate=?, lastupby=? where id=?";
$parameters = array($_POST["text_content"], $_POST["text_font"], $_POST["text_align"], $nowdate, $_SESSION['cmsloginid'], $id);
bind_pdo($sql, $parameters);
$dbh = null;
header("Location: text_config_index.php?msg=Modify Successfully");