| 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
30
31
32
33
34
35
36
37
38
39
40
41
 | <?phpinclude 'config.php';
 
 // Check if the user is logged in
 
 if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1'))
 {
 header("Location: login.php");
 exit;
 }
 require("configure.php");
 
 $siteinfoid         = check_input($_POST["siteinfoid"]);
 //$facebook            = check_input($_POST["facebook"]);
 $mailfrom        = check_input($_POST["mailfrom"]);
 $copyrighten         = check_input($_POST["copyrighten"]);
 $copyrighttc         = check_input($_POST["copyrighttc"]);
 $metapagetitleen    = check_input($_POST["metapagetitleen"]);
 $metapagetitletc    = check_input($_POST["metapagetitletc"]);
 $metakeyworden        = check_input($_POST["metakeyworden"]);
 $metakeywordtc        = check_input($_POST["metakeywordtc"]);
 $metadescen            = check_input($_POST["metadescen"]);
 $metadesctc            = check_input($_POST["metadesctc"]);
 $nowdate = date("Y-m-d H:i:s");
 //print_r($_POST);
 
 
 // Modify
 $sql = "update site_info set mailfrom='$mailfrom', copyrighten='$copyrighten', copyrighttc='$copyrighttc', metapagetitleen='$metapagetitleen', metapagetitletc='$metapagetitletc', metakeyworden='$metakeyworden', metakeywordtc='$metakeywordtc', metadescen='$metadescen', metadesctc='$metadesctc', lastupdate='$nowdate', lastupby='".$_SESSION['cmsloginid']."' ";
 $sql .= " where siteinfoid=". $siteinfoid ." ";
 mysql_query($sql);
 
 if( mysql_errno() > 0 ){
 echo 'Modify Site Info Error:<br />'. mysql_error() .'<br />SQL: '. $sql;
 exit;
 }
 
 mysql_close($dbh);
 
 header("Location: site_info_modifyform.php?msg=Modify Successful");
 ?>
 
 |