1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?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");
|