本文整理汇总了PHP中public_function::getbgbyuser方法的典型用法代码示例。如果您正苦于以下问题:PHP public_function::getbgbyuser方法的具体用法?PHP public_function::getbgbyuser怎么用?PHP public_function::getbgbyuser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类public_function
的用法示例。
在下文中一共展示了public_function::getbgbyuser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<?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);
示例2: if
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=="说说这个相册的故事...(非必填)"){