当前位置: 首页>>代码示例>>PHP>>正文


PHP loggedinorreturn函数代码示例

本文整理汇总了PHP中loggedinorreturn函数的典型用法代码示例。如果您正苦于以下问题:PHP loggedinorreturn函数的具体用法?PHP loggedinorreturn怎么用?PHP loggedinorreturn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了loggedinorreturn函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dirname

|   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.   |
|--------------------------------------------------------------------------|
|   Project Leaders: Mindless,putyn.                                       |
|--------------------------------------------------------------------------|
_   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php';
require_once INCL_DIR . 'user_functions.php';
require_once INCL_DIR . 'html_functions.php';
//require_once INCL_DIR . 'function_ircbot.php';
//== Updated casino.php by Bigjoos
dbconn(false);
loggedinorreturn();
$lang = array_merge(load_language('global'), load_language('casino'));
//== Config
$amnt = $nobits = $abcdefgh = 0;
$dummy = '';
$player = UC_USER;
$mb_basic = 1024 * 1024;
$max_download_user = $mb_basic * 1024 * 1024;
//= 255 Gb
$max_download_global = $mb_basic * $mb_basic * 1;
//== 10.0 Tb
$required_ratio = 0.5;
//== Min ratio
$user_everytimewin_mb = $mb_basic * 20;
//== Means users that wins under 70 mb get a cheat_value of 0 -> win every time
$cheat_value = 8;
开发者ID:UniversalAdministrator,项目名称:U-232-V4,代码行数:31,代码来源:casino.php

示例2: dbconn

<?php

require "include/bittorrent.php";
dbconn();
require_once get_langfile_path();
loggedinorreturn(true);
stdhead($lang_staff['head_staff']);
$Cache->new_page('staff_page', 900, true);
if (!$Cache->get_page()) {
    $Cache->add_whole_row();
    begin_main_frame();
    $secs = 900;
    $dt = TIMENOW - $secs;
    $onlineimg = "<img class=\"button_online\" src=\"pic/trans.gif\" alt=\"online\" title=\"" . $lang_staff['title_online'] . "\" />";
    $offlineimg = "<img class=\"button_offline\" src=\"pic/trans.gif\" alt=\"offline\" title=\"" . $lang_staff['title_offline'] . "\" />";
    $sendpmimg = "<img class=\"button_pm\" src=\"pic/trans.gif\" alt=\"pm\" />";
    //--------------------- FIRST LINE SUPPORT SECTION ---------------------------//
    unset($ppl);
    $res = sql_query("SELECT * FROM users WHERE users.support='yes' AND users.status='confirmed' ORDER BY users.username") or sqlerr();
    while ($arr = mysql_fetch_assoc($res)) {
        $countryrow = get_country_row($arr['country']);
        $ppl .= "<tr><td class=embedded>" . get_username($arr['id']) . "</td><td class=embedded><img width=24 height=15 src=\"pic/flag/" . $countryrow[flagpic] . "\" title=\"" . $countryrow['name'] . "\" style=\"padding-bottom:1px;\"></td>\n <td class=embedded> " . ($arr['showonline'] == 'yes' ? strtotime($arr['last_access']) > $dt ? $onlineimg : $offlineimg : $lang_staff['text_hidden_by_staff']) . "</td>" . "<td class=embedded><a href=sendmessage.php?receiver=" . $arr['id'] . " title=\"" . $lang_staff['title_send_pm'] . "\">" . $sendpmimg . "</a></td>" . "<td class=embedded>" . $arr['supportlang'] . "</td>" . "<td class=embedded>" . $arr['supportfor'] . "</td></tr>\n";
    }
    begin_frame($lang_staff['text_firstline_support'] . "<font class=small> - [<a class=altlink href=contactstaff.php><b>" . $lang_staff['text_apply_for_it'] . "</b></a>]</font>");
    echo $lang_staff['text_firstline_support_note'];
    ?>
<br /><br />
<table width=100% cellspacing=0 align=center>
	<tr>
		<td class=embedded><b><?php 
    echo $lang_staff['text_username'];
开发者ID:CptTZ,项目名称:NexusPHP-1,代码行数:31,代码来源:staff.php


注:本文中的loggedinorreturn函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。