Esempio n. 1
0
<?php
require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
require_once '../../include/riji_gl_function.php';
$public_function=new public_function();
$blog_userid=$_SESSION['UID'];
if($public_function->getbgbyuser($blog_userid)!=""){
	$bg=$public_function->getbgbyuser($blog_userid);
}else if($public_function->getbgbysys()!=""){
	$bg=$public_function->getbgbysys();
}else{
	$bg="../../images/bg/bg3.jpg";
}
$types_option=turn_string_str($_GET['types']);
//日记管理
$select_blog_sql="select blog_id,blog_title,
	blog_content,blog_userid,blog_type,blog_right,blog_date,
	blog_viewtime,blog_shoucangtime,blog_zhuanfatime,blog_zantime,
	blog_fenxiangtime,blog_isedview,blog_isedzhuanzai,blog_isedshoucang,
	blog_isedzan,blog_isedfenxiang,blog_isedshow from blog_blog where blog_userid='$blog_userid'
	order by blog_id desc";
$select_blog_result=$public_function->getresult($select_blog_sql);
$select_blog_num=$public_function->getnum($select_blog_result);

$settypes="gl_blog";
if($types_option=="setpagesize"){
	$public_function->setPageSize(turn_string_sql($_GET['pagesizeset']), turn_string_sql($_GET['settypes']), $blog_userid);
	echo "<script>location.href='gl_blog.php'</script>";
}
$ised_pagesize_result=mysql_query("select * from czj_pagesize where types='$settypes' and userid='$blog_userid'");
$ised_pagesize_num=mysql_num_rows($ised_pagesize_result);
Esempio n. 2
0
echo "Firefox 2";
else if(strpos($_SERVER["HTTP_USER_AGENT"],"Chrome"))
echo "Google Chrome";
else if(strpos($_SERVER["HTTP_USER_AGENT"],"Safari"))
echo "Safari";
else if(strpos($_SERVER["HTTP_USER_AGENT"],"Opera"))
echo "Opera";
else echo $_SERVER["HTTP_USER_AGENT"]; */
?>

<?php 
require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
$public_function = new public_function();
$blog_type_user = $_SESSION['UID'];
if ($public_function->getbgbyuser($blog_type_user) != "") {
    $bg = $public_function->getbgbyuser($blog_type_user);
} else {
    if ($public_function->getbgbysys() != "") {
        $bg = $public_function->getbgbysys();
    } else {
        $bg = "images/bg/bg3.jpg";
    }
}
$select_blog_album_sql = "select ids,album_name from blog_album where album_author='{$blog_type_user}'";
$select_blog_album_result = $public_function->getresult($select_blog_album_sql);
$select_blog_album_num = $public_function->getnum($select_blog_album_result);
$album_right = $_POST['album_right'];
$album_name = $_POST['album_name'];
$album_desc = $_POST['album_desc'];
/* if($album_desc0=="说说这个相册的故事...(非必填)"){