BLOG HOSTER---PHP & MYSQL Create Blogs in seconds Installation of your BlogHoster system is easy.

源代码在线查看: settings.php

软件大小: 558 K
上传用户: quzhengjie
关键词: Installation BlogHoster seconds HOSTER
下载地址: 免注册下载 普通下载 VIP

相关代码

								$page = "settings.php";
				include "header.php";
				if(isset($_POST['task'])) { $task = $_POST['task']; } elseif(isset($_GET['task'])) { $task = $_GET['task']; } else { $task = "main"; }
				
				
				
				
				
				if($task == "dosave") {
				$entries_per_page = $_POST['entries_per_page'];
				$language = $_POST['language'];
				$timezone = $_POST['timezone'];
				$format_date = $_POST['format_date'];
				$format_time = $_POST['format_time'];
				$showtitle = $_POST['showtitle'];
				$recent_entries = $_POST['recent_entries'];
				$entry_default = str_replace("<", "				
				
				if($group_info[allow_privacy] == 1) {
				$default_privacy = $_POST['default_privacy'];
				} else {
				$default_privacy = $user_info[default_privacy];
				}
				
				if($group_info[allow_mailinglist] == 1) {
				$mailing_list = str_replace("<", "				} else {
				$mailing_list = "";
				}
				
				if($group_info[allow_banning] == 1) {
				$banned_ips = str_replace(" ", "", str_replace("<", "				} else {
				$banned_ips = "";
				}
				
				// CHECK IF MAILING LIST IS OVER 30 EMAIL ADDRESSES
				$result = substr_count($mailing_list, "@");
				if($result > 30) { echo $head; error(33); }
				
				if($entries_per_page != (int) $entries_per_page | !is_numeric($entries_per_page) | $entries_per_page < 1) { echo $head; error(26); } 
				if($recent_entries != (int) $recent_entries | !is_numeric($recent_entries)) { echo $head; error(31); }
				
				mysql_query("UPDATE bhost_users SET language='$language', entries_per_page='$entries_per_page', recent_entries='$recent_entries', timezone='$timezone', format_date='$format_date', format_time='$format_time', showtitle='$showtitle', entry_default='$entry_default', default_privacy='$default_privacy', mailing_list='$mailing_list', banned_ips='$banned_ips' WHERE u_id='$user_info[u_id]'");
				$user_info = mysql_fetch_assoc(mysql_query("SELECT * FROM bhost_users WHERE u_id='$user_info[u_id]'"));
				echo $head;
				echo "
				$settings1
				$settings2
				
				
				
				
				";
				echo $foot;
				exit();
				}
				
				
				
				
				if($task == "main") {
				echo $head;
				echo "
				$settings1
				$settings4
				
				
				
				
				
				
				
				$settings5
				
				"; tip("13"); echo "
				
				
				
				
				$settings7
				
				"; tip("14"); echo "
				
				
				
				
				";
				
				
				if($group_info[allow_language] == "1") {
				echo "
				
				$settings6
				
				
				";
				$handle = opendir("../lang/"); 
				 while($filename = readdir($handle)) {
				  if ($filename != "." && $filename != ".." && $filename != "index.php") {
				   echo "$filename";
				  }
				 }
				closedir($handle);
				
				echo "
				
				
				
				";
				} else {
				echo "";
				}
				
				
				echo "
				
				$settings9
				
				
				Pacific Time (US & Canada)
				Mountain Time (US & Canada)
				Central Time (US & Canada)
				Eastern Time (US & Canada)
				Atlantic Time (Canada)
				Alaska (US & Canada)
				Hawaii (US)
				Midway Island, Samoa
				Eniwetok, Kwajalein
				Newfoundland
				Brasilia, Buenos Aires, Georgetown
				Mid-Atlantic
				Azores, Cape Verde Is.
				Greenwich Mean Time (Lisbon, London)
				Amsterdam, Berlin, Paris, Rome, Madrid
				Athens, Helsinki, Istanbul, Cairo, E. Europe
				Baghdad, Kuwait, Nairobi, Moscow
				Tehran
				Abu Dhabi, Kazan, Muscat
				Kabul
				Islamabad, Karachi, Tashkent
				Bombay, Calcutta, New Delhi
				Almaty, Dhaka
				Bangkok, Jakarta, Hanoi
				Beijing, Hong Kong, Singapore, Taipei
				Tokyo, Osaka, Sapporto, Seoul, Yakutsk
				Adelaide, Darwin
				Brisbane, Melbourne, Sydney, Guam
				Magadan, Soloman Is., New Caledonia
				Fiji, Kamchatka, Marshall Is., Wellington
				
				
				
				
				
				$settings10
				
				
				".cdate("n/j/Y", time())."
				".cdate("n.j.Y", time())."
				".cdate("n-j-Y", time())."
				".cdate("Y/n/j", time())."
				".cdate("Y-n-j", time())."
				".cdate("Y-m-d", time())."
				".cdate("Ynj", time())."
				".cdate("j/n/Y", time())."
				".cdate("j.n.Y", time())."
				".cdate("M. j, Y", time())."
				".cdate("F j, Y", time())."
				".cdate("l, F j, Y", time())."
				".cdate("l, F j", time())."
				".cdate("l", time())."
				
				
				
				";
				
				$time = "460269000";
				
				echo "
				
				$settings11
				
				
				".cdate("g:i A", $time)."
				".cdate("h:i A", $time)."
				".cdate("g:i", $time)."
				".cdate("h:i", $time)."
				".cdate("H:i", $time)."
				
				
				
				
				
				$settings12
				
				
				$settings13
				$settings14
				";tip("15");echo"
				
				
				";
				
				if($group_info[allow_privacy] == 1) {
				echo "
				
				$settings16
				
				
				$settings17
				$settings18
				$settings19
				$settings20
				";tip("16");echo"
				
				
				";
				}
				
				
				$entry_default = str_replace("				$mailing_list = str_replace("				$banned_ips = str_replace("				
				echo "
				
				$settings23
				
				$entry_default";tip("17");echo "
				
				
				";
				
				if($group_info[allow_mailinglist] == 1) {
				echo "
				
				$settings26
				
				$mailing_list";tip("18");echo "
				
				
				";
				}
				
				
				if($group_info[allow_banning] == 1) {
				echo "
				
				$settings29
				
				$banned_ips";tip("19");echo "
				
				
				";
				}
				
				
				echo "
				
				 
				
				
				
				
				
				
				
				
				";
				echo $foot;
				}
				?>			

相关资源