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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
<?php error_reporting(E_ALL); // ข้อมูลพื้นฐานเว็บไซต์
$sql_data = "SELECT * FROM cms_main_data"; $result_data = mysql_query($sql_data) or die(mysql_error()); $ch_data=mysql_num_rows($result_data); if($ch_data==0){ $sql="INSERT INTO `cms_main_data` (`id_main_data` ,`name_web` ,`address` ,`tel` ,`fax` ,`email` ) VALUES ('1', '', '', '', '', '')"; mysql_query($sql); } $main_data=mysql_fetch_array($result_data); ?> <html> <head> <title><?= $main_data['name_web'].' : '.$main_data['address'] ?></title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <script src='coremain/ccs/301a.js' type='text/javascript'></script> <link href='coremain/ccs/css_style.css?t=<?= time() ?>' rel='stylesheet' type='text/css'> <link href='coremain/ccs/blog.css' rel='stylesheet' type='text/css'> <link href="coremain/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" /> <link href="coremain/jQuery/theme.css" rel="stylesheet" type="text/css"/> <script src="coremain/jQuery/jquery.js"></script> <script src="coremain/jQuery/jquery-ui.js"></script> <script src="coremain/ckeditor/ckeditor.js"></script> <link href='coremain/ccs/uploadfile.css' rel='stylesheet' type='text/css'> <script src="coremain/jQuery/jquery.uploadfile.js"></script> </head> <body background='<?= $_SESSION['web_name'].'/theme/'.$_SESSION['themes_'].'/'.$_SESSION['background2'] ?>' bgproperties='fixed'>
<div id="dialog-popup"></div> <div id="dialog-sub"></div>
<div id='colorpicker301' class='colorpicker301'></div> <?php // ส่งค่า mod & path import_request_variables('pG', 'p_'); //#5.3#//if($p_mod!="") { $mod=trim($p_mod); } $mod = isset($p_mod) ? $p_mod : ''; //#5.3#//if($p_path!="") { $path=trim($p_path); $_SESSION['navigator_path']=$path; } if(isset($p_path)){ $path = $p_path; $_SESSION['navigator_path'] = $path; } //#5.3#//if($p_id_sub!="") { $id_sub=trim($p_id_sub); $_SESSION['id_sub']=$id_sub; } if(isset($p_id_sub)){ $id_sub = $p_id_sub; $_SESSION['id_sub'] = $id_sub; $sel_mod = "SELECT id_top FROM cms_menu_sub WHERE id_sub = '$id_sub'"; $que_mod = mysql_query($sel_mod); $obj_mod = mysql_fetch_assoc($que_mod); $_SESSION['mnt'] = $obj_mod['id_top']; }else{ $get_url = explode('?', $_SERVER['REQUEST_URI']); if(isset($get_url[1]) && strpos($get_url[1], '&') > -1){ $var = explode('&', $get_url[1]); if(isset($var[0])){ $mod_path = $var[0].'&'.$var[1];
$sel_mod = "SELECT id_top FROM cms_menu_sub WHERE url LIKE '%$mod_path%'"; $que_mod = mysql_query($sel_mod); $obj_mod = mysql_fetch_assoc($que_mod); $_SESSION['mnt'] = $obj_mod['id_top']; } }else{ unset($_SESSION['mnt']); } } //#5.3#//if($p_id_type!="") { $id_type=trim($p_id_type); $_SESSION['id_type']=$id_type; } if(isset($p_id_type)){ $id_type = $p_id_type; $_SESSION['id_type'] = $id_type; }
//#5.3#//if($p_id_module!="") { $id_module=trim($p_id_module); } $id_module = isset($p_id_module) ? $p_id_module : ''; //#5.3#//if($p_menu_name!="") { $menu_name=trim($p_menu_name); } $menu_name = isset($p_menu_name) ? $p_menu_name : ''; //#5.3#//if($p_evar!="") { $fulltexts=trim($p_evar); } $fulltexts = isset($p_evar) ? $p_evar : ''; //#5.3#//if($p_time!="") { $time=trim($p_time); } $time = isset($p_time) ? $p_time : ''; //#5.3#//if($p_show_theme!="") { $show_theme=trim($p_show_theme); $_SESSION['show_theme']=$show_theme; } if(isset($p_show_theme)){ $show_theme = $p_show_theme; $_SESSION['show_theme'] = $show_theme; }
if(isset($_SESSION['id_sub'])){ // Name cms_menu_sub $sql="select name from cms_menu_sub WHERE id_sub='$_SESSION[id_sub]'"; $result=mysql_query($sql); $data_name_menu_sub = mysql_fetch_array($result); }
// Header include('coremain/header.php');
// Body include('coremain/template/'.$_SESSION['template'].'/body.php');
// Footer include('coremain/footer.php');
?>
</html>
<style> body{ background-attachment: fixed; } </style>
|