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


PHP happyHour函数代码示例

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


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

示例1: happyFile

function happyFile($act)
{
    global $CACHE;
    $f = "{$CACHE}/happyhour.txt";
    $happy = unserialize(file_get_contents($f));
    if ($act == "set") {
        $array_happy = array('time' => happyHour("generate"), 'status' => '1', 'catid' => happyHour("todo"));
    } elseif ($act == "reset") {
        $array_happy = array('time' => $happy["time"], 'status' => '0', 'catid' => $happy["catid"]);
    }
    $array_happy = serialize($array_happy);
    $f = "{$CACHE}/happyhour.txt";
    $file = fopen($f, 'w');
    ftruncate($file, 0);
    fwrite($file, $array_happy);
    fclose($file);
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:17,代码来源:function_happyhour.php

示例2: stdhead


//.........这里部分代码省略.........
                switch ($fl['modifier']) {
                    case 1:
                        $mode = 'All Torrents Free';
                        break;
                    case 2:
                        $mode = 'All Double Upload';
                        break;
                    case 3:
                        $mode = 'All Torrents Free and Double Upload';
                        break;
                    default:
                        $mode = 0;
                }
                $htmlout .= $fl['modifier'] != 0 && $fl['expires'] > TIME_NOW ? '<table width="50%"><tr>
     <td class="colhead" colspan="3" align="center">' . $fl['title'] . '<br />' . $mode . '</td>
   </tr>
   <tr>
     <td width="42" align="center">
     <img src="' . $TBDEV['baseurl'] . '/pic/cat_free.gif" alt="FREE!" /></td>
     <td align="center">' . $fl['message'] . ' set by ' . $fl['setby'] . '<br />' . ($fl['expires'] != 1 ? 'Until ' . get_date($fl['expires'], 'DATE') . ' (' . mkprettytime($fl['expires'] - time()) . ' to go)' : '') . '</td>
     <td width="42" align="center">
     <img src="' . $TBDEV['baseurl'] . '/pic/cat_free.gif" alt="FREE!" /></td>
</tr></table>
<br />' : '';
            }
        }
    }
    //=== free addon end
    //==Temp demotion
    if ($CURUSER['override_class'] != 255 && $CURUSER) {
        $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' bgcolor='green'>\n   <tr><td style='padding: 10px; background: green'><b><a href='./restoreclass.php'>\n   <font color='white'>{$lang['gl_tempdemotion']}</font></a></b></td></tr></table><br />\n";
    }
    //==End
    if ($TBDEV['msg_alert'] && isset($unread) && !empty($unread)) {
        $htmlout .= "<table border='0' cellspacing='0' cellpadding='10' bgcolor='red'>\n                  <tr><td style='padding: 10px; background: red'>\n\n                  <b><a href='./messages.php'><font color='white'>" . sprintf($lang['gl_msg_alert'], $unread) . ($unread > 1 ? "s" : "") . "!</font></a></b>\n                  </td></tr></table><br />\n";
    }
    //==Big red staffmess thingy box:
    if ($TBDEV['staffmsg_alert'] && $CURUSER['class'] >= UC_MODERATOR) {
        $num = mysql_result(sql_query('SELECT count(id) FROM staffmessages WHERE answeredby = 0'), 0);
        if ($num > 0) {
            $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n                  <tr><td style='padding: 10px; background: #ccc'>\n\n                  <b><a href='staffbox.php'>" . sprintf($lang['gl_staffmsg_alert'], $num) . "!</a></b>\n                  </td></tr></table><br />";
        }
    }
    //==End
    //==Big red report thingy box:
    if ($TBDEV['report_alert'] && $CURUSER['class'] >= UC_MODERATOR) {
        $num = mysql_result(sql_query('SELECT COUNT(id) FROM reports WHERE delt_with = 0'), 0);
        if ($num > 0) {
            $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n                  <tr><td style='padding: 10px; background: #ccc'>\n\n                  <b><a href='admin.php?action=reports'>" . sprintf($lang['gl_reportmsg_alert'], $num) . "!</a></b>\n                  </td></tr></table><br />";
        }
    }
    //==End
    //Big red uploadapp thingy box:
    if ($TBDEV['uploadapp_alert'] && $CURUSER['class'] >= UC_MODERATOR) {
        $num = mysql_result(sql_query('SELECT count(id) FROM uploadapp WHERE status = "pending"'), 0);
        if ($num > 0) {
            $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'>\n                  <tr><td style='padding: 10px; background: #ccc'>\n\n                  <b><a href='uploadapps.php'>" . sprintf($lang['gl_uploadapp_alert'], $num) . "!</a></b>\n                  </td></tr></table><br />";
        }
    }
    //==End
    // happy hour
    if ($CURUSER) {
        if (happyHour("check")) {
            $htmlout .= "<table border='0' cellspacing='0' cellpadding='10'  ><tr><td align='center' style=\"background:#CCCCCC;color:#222222; padding:10px\">\n\n        <b>Hey its now happy hour ! " . (happyCheck("check") == 255 ? "Every torrent downloaded in the happy hour is free" : "Only <a href=\"browse.php?cat=" . happyCheck("check") . "\">this category</a> is free this happy hour") . "<br /><font color='red'>" . happyHour("time") . " </font> remaining from this happy hour!</b>";
            $htmlout .= "</td></tr></table><br />\n";
        }
    }
    //==pdq crazyhour
    if (isset($CURUSER)) {
        $transfer_filename = $TBDEV['cache'] . '/transfer_crazyhour.txt';
        $crazyhour_filename = $TBDEV['cache'] . '/crazy_hour.txt';
        $crazyhour_cache = fopen($crazyhour_filename, 'r+');
        $crazyhour_var = fread($crazyhour_cache, filesize($TBDEV['cache'] . '/crazy_hour.txt'));
        fclose($crazyhour_cache);
        $cimg = '<img src=\'' . $TBDEV["pic_base_url"] . 'cat_free.gif\' alt=\'FREE!\' />';
        if ($crazyhour_var >= TIME_NOW && $crazyhour_var < TIME_NOW + 3600) {
            // is crazyhour
            $htmlout .= "<table width='50%'><tr><td class='colhead' colspan='3' align='center'>\n       " . $TBDEV['crazy_title'] . " Ends in " . mkprettytime($crazyhour_var - TIME_NOW) . "</td></tr>\n       <tr><td width='42px' align='center' valign='middle'>" . $cimg . "</td>\n       <td><div align='center'>" . $TBDEV['crazy_message'] . "</div></td>\n       <td width='42px' align='center' valign='middle'>" . $cimg . "</td></tr></table><br />";
            if (is_file($transfer_filename)) {
                unlink($transfer_filename);
            }
        } elseif ($crazyhour_var < TIME_NOW + 3600 && !is_file($transfer_filename)) {
            //== crazyhour over
            $transfer_file_created = fopen($transfer_filename, 'w') or die('no perms?');
            fclose($transfer_file_created);
            $crazyhour['crazyhour_new'] = mktime(23, 59, 59, date('m'), date('d'), date('y'));
            $crazyhour['crazyhour']['var'] = mt_rand($crazyhour['crazyhour_new'], $crazyhour['crazyhour_new'] + 86400);
            $fp = fopen($crazyhour_filename, 'w');
            fwrite($fp, $crazyhour['crazyhour']['var']);
            fclose($fp);
            write_log('Next Crazyhour is at ' . date('F j, g:i a T', $crazyhour['crazyhour']['var']));
            $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour['crazyhour']['var'], '') . "  " . mkprettytime($crazyhour['crazyhour']['var'] - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />";
        } else {
            // make date look prettier with countdown etc even :]
            $htmlout .= "<table cellpadding='3'><tr><td class='colhead' colspan='3' align='center'>" . " Crazyhour will be " . get_date($crazyhour_var, '') . "  " . mkprettytime($crazyhour_var - TIME_NOW) . " remaining till Crazyhour</td></tr></table><br />";
        }
    }
    // crazyhour end
    return $htmlout;
}
开发者ID:thefkboss,项目名称:U-232,代码行数:101,代码来源:template.php

示例3: url

	<!-- top announcements code -->
<?php 
if (isset($unread) && !empty($unread)) {
    echo "<table align=center border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style=\"padding: 10px; background-image: url(pic/back_newpm.gif)\">\n";
    echo "<b><a href={$BASEURL}/messages.php?action=viewmailbox><font color=white>You have {$unread} new message" . ($unread > 1 ? "s" : "") . "!</font></a></b>";
    echo "</td></tr></table></p>\n";
}
if ($CURUSER) {
    echo "<br/>";
    echo "<table align=center border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style=\"padding: 10px; background-image: url(pic/back_newpm.gif)\">\n";
    echo "<b><a href={$BASEURL}/upload.php><font color=white>Upload and get 15 bonus points!</font></a></b>";
    echo "</td></tr></table></p>\n";
    // happy hour
    if (happyHour("check")) {
        echo "<table align=center border=0 cellspacing=0 cellpadding=10  ><tr><td align=center style=\"background:#CCCCCC;color:#222222; padding:10px\">\n";
        echo "<b>Hey its now happy hour ! " . (happyCheck("check") == 255 ? "Every torrent downloaded in the happy hour is free" : "Only <a href=\"browse.php?cat=" . happyCheck("check") . "\">this category</a> is free this happy hour") . "<br/><font color=red>" . happyHour("time") . " </font> remaining from this happy hour!</b>";
        echo "</td></tr></table>\n";
    }
}
// ////////////////
if ($CURUSER["tenpercent"] == "no") {
    ?>
<script language=javascript  type="text/javascript">
function enablesubmit() {
document.tenpercent.submit.disabled = document.tenpercent.submit.checked;
}
function disablesubmit() {
document.tenpercent.submit.disabled = !document.tenpercent.submit.checked;
}
</script>
<?php 
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:stdhead.php

示例4: isset

}
$id = isset($_GET['torrent']) ? (int) $_GET['torrent'] : 0;
$ssluse = isset($_GET['ssl']) && $_GET['ssl'] == 1 || $CURUSER['ssluse'] == 3 ? 1 : 0;
$zipuse = isset($_GET['zip']) && $_GET['zip'] == 1 ? true : false;
$text = isset($_GET['text']) && $_GET['text'] == 1 ? true : false;
if (!is_valid_id($id)) {
    stderr($lang['download_user_error'], $lang['download_no_id']);
}
$res = sql_query('SELECT name, owner, vip, category, filename, info_hash FROM torrents WHERE id = ' . sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysqli_fetch_assoc($res);
$fn = $INSTALLER09['torrent_dir'] . '/' . $id . '.torrent';
if (!$row || !is_file($fn) || !is_readable($fn)) {
    stderr('Err', 'There was an error with the file or with the query, please contact staff');
}
if (happyHour('check') && happyCheck('checkid', $row['category']) && XBT_TRACKER == false && $INSTALLER09['happy_hour'] == true) {
    $multiplier = happyHour('multiplier');
    happyLog($CURUSER['id'], $id, $multiplier);
    sql_query('INSERT INTO happyhour (userid, torrentid, multiplier ) VALUES (' . sqlesc($CURUSER['id']) . ',' . sqlesc($id) . ',' . sqlesc($multiplier) . ')') or sqlerr(__FILE__, __LINE__);
    $mc1->delete_value($CURUSER['id'] . '_happy');
}
if ($INSTALLER09['seedbonus_on'] == 1 && $row['owner'] != $CURUSER['id']) {
    //===remove karma
    sql_query("UPDATE users SET seedbonus = seedbonus-" . sqlesc($INSTALLER09['bonus_per_download']) . " WHERE id = " . sqlesc($CURUSER["id"])) or sqlerr(__FILE__, __LINE__);
    $update['seedbonus'] = $CURUSER['seedbonus'] - $INSTALLER09['bonus_per_download'];
    $mc1->begin_transaction('userstats_' . $CURUSER['id']);
    $mc1->update_row(false, array('seedbonus' => $update['seedbonus']));
    $mc1->commit_transaction($INSTALLER09['expires']['u_stats']);
    $mc1->begin_transaction('user_stats_' . $CURUSER['id']);
    $mc1->update_row(false, array('seedbonus' => $update['seedbonus']));
    $mc1->commit_transaction($INSTALLER09['expires']['user_stats']);
    //===end
开发者ID:UniversalAdministrator,项目名称:U-232-V4,代码行数:31,代码来源:download.php

示例5: do_sanity

function do_sanity($ts = 0)
{
    // Lets try upping the max_execution_time and memory_limit if we can (Code from Pet/FM)
    if (@ini_get("max_execution_time") < 300) {
        @ini_set("max_execution_time", 300);
    }
    if (trim(@ini_get("memory_limit"), "M") < 128) {
        @ini_set("memory_limit", "128M");
    }
    global $clean_interval, $BASEURL, $btit_settings, $XBTT_USE, $db_prefix, $autopruneusers, $email_on_prune, $days_members, $days_not_comfirm, $days_to_email, $PRIVATE_ANNOUNCE, $TORRENTSDIR, $CURRENTPATH, $LIVESTATS, $LOG_HISTORY, $TABLE_PREFIX, $DOXPATH, $DBDT;
    $THIS_BASEPATH = dirname(__FILE__);
    $days = 14;
    $time = time() - $days * 86400;
    mysqli_query($GLOBALS["___mysqli_ston"], "DELETE FROM {$TABLE_PREFIX}bugs WHERE status != 'na' AND added < {$time}") or sqlerr(__FILE__, __LINE__);
    //delete bots after 48 hours
    mysqli_query($GLOBALS["___mysqli_ston"], "DELETE FROM {$TABLE_PREFIX}bots WHERE visit < (NOW() - INTERVAL 2880 MINUTE)");
    //end bots
    //delete last up/downloads after 48 hours
    mysqli_query($GLOBALS["___mysqli_ston"], "DELETE FROM {$TABLE_PREFIX}downloads WHERE date < (NOW() - INTERVAL 2880 MINUTE)");
    //end last up/downloads
    //show images in shoutbox
    if ($btit_settings["endtch"] == TRUE) {
        $shout = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM {$TABLE_PREFIX}chat ORDER BY id DESC LIMIT 1");
        $shoutrow = mysqli_fetch_assoc($shout);
        $fp = $btit_settings["fix_chat"];
        if ($shoutrow["count"] >= $btit_settings["don_chat"]) {
            if ($btit_settings["ran_chat"] == TRUE) {
                do_sqlquery("INSERT INTO {$TABLE_PREFIX}chat (uid, time, name, text) VALUES (0," . time() . ", 'System','[img]{$BASEURL}/images/shouts/shout.php[/img]')");
            } else {
                do_sqlquery("INSERT INTO {$TABLE_PREFIX}chat (uid, time, name, text) VALUES (0," . time() . ", 'System','[img]{$BASEURL}/images/shouts/" . $fp . "[/img]')");
            }
        }
    }
    //show images in shoutbox end
    //happy hour
    $happy_r = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT UNIX_TIMESTAMP(value_s) AS happy , value_i AS happys from {$TABLE_PREFIX}avps where arg='happyhour'") or sqlerr(__FILE__, __LINE__);
    $happy_a = mysqli_fetch_array($happy_r);
    $curDate = time();
    $happyTime = $happy_a["happy"] + 3600;
    if ($happy_a["happys"] == 0) {
        $happyHour = happyHour();
        mysqli_query($GLOBALS["___mysqli_ston"], "UPDATE {$TABLE_PREFIX}avps set value_s=" . sqlesc($happyHour) . ", value_i='1' WHERE arg='happyhour' LIMIT 1 ") or sqlerr(__FILE__, __LINE__);
    } elseif ($happy_a["happys"] == 1 && $curDate > $happyTime) {
        mysqli_query($GLOBALS["___mysqli_ston"], "UPDATE {$TABLE_PREFIX}avps set value_i='0' WHERE arg='happyhour' LIMIT 1 ");
    }
    $switch = do_sqlquery("SELECT * FROM `{$TABLE_PREFIX}files` WHERE `external`='no'", true);
    $switch_happy = mysqli_fetch_array($switch);
    if ($switch_happy["happy_hour"] == "yes") {
        if (ishappyHour("check") && $happyTime > "0:00") {
            do_sqlquery("ALTER TABLE `{$TABLE_PREFIX}files` CHANGE `happy` `happy` ENUM( 'yes', 'no' ) NULL DEFAULT 'yes'") or sqlerr();
            do_sqlquery("UPDATE `{$TABLE_PREFIX}files` SET `happy`='yes' WHERE `external`='no'", true);
        } else {
            do_sqlquery("ALTER TABLE `{$TABLE_PREFIX}files` CHANGE `happy` `happy` ENUM( 'yes', 'no' ) NULL DEFAULT 'no'") or sqlerr();
            do_sqlquery("UPDATE `{$TABLE_PREFIX}files` SET `happy`='no' WHERE `external`='no'", true);
        }
    }
    // happy hour
    // featured
    if ($btit_settings["auto_feat"] == TRUE) {
        $feat = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT info_hash , leechers , image from {$TABLE_PREFIX}files where image!='' ORDER BY leechers DESC limit 1");
        $resfeat = mysqli_fetch_array($feat);
        do_sqlquery("INSERT INTO {$TABLE_PREFIX}featured (fid,torrent_id) VALUES ('','{$resfeat['info_hash']}')");
    }
    //featured
    //sb
    if ($XBTT_USE) {
        $ressb = do_sqlquery("SELECT uid FROM xbt_files_users as u INNER JOIN xbt_files as x ON u.fid=x.fid WHERE u.left = '0' AND x.flags='0' AND u.active='1'");
        if (mysqli_num_rows($ressb) > 0) {
            while ($arrsb = mysqli_fetch_assoc($ressb)) {
                $x = $arrsb["uid"];
                quickQuery("UPDATE `{$TABLE_PREFIX}users` SET `seedbonus`=`seedbonus`+'" . number_format(($ts > 0 ? time() - $ts : $clean_interval) / 3600 * $GLOBALS["bonus"], 6, ".", "") . "' WHERE `id` = '{$x}'");
            }
        }
    } else {
        $ressb = do_sqlquery("SELECT pid FROM {$TABLE_PREFIX}peers WHERE status = 'seeder'");
        if (mysqli_num_rows($ressb) > 0) {
            while ($arrsb = mysqli_fetch_assoc($ressb)) {
                $x = $arrsb['pid'];
                quickQuery("UPDATE `{$TABLE_PREFIX}users` SET `seedbonus`=`seedbonus`+'" . number_format(($ts > 0 ? time() - $ts : $clean_interval) / 3600 * $GLOBALS["bonus"], 6, ".", "") . "' WHERE `pid`= '{$x}'");
            }
        }
    }
    //sb
    //warn
    $query = do_sqlquery("SELECT * FROM `{$TABLE_PREFIX}users` WHERE warn='yes'");
    while ($conf = mysqli_fetch_assoc($query)) {
        if (mysqli_num_rows($query) > 0) {
            $expire_dat = $conf['warnadded'];
            $expire2 = strtotime($expire_dat);
            $nown = strtotime("now");
            if ($nown >= $expire2) {
                $subj = sqlesc("Your Warning time is expired !!");
                $msg = sqlesc("You are not longer Warned , please be carefull to not make the same mistake again !!");
                send_pm(0, $conf[id], $subj, $msg);
                mysqli_query($GLOBALS["___mysqli_ston"], "UPDATE {$TABLE_PREFIX}users SET warn='no' WHERE id='{$conf['id']}'") or sqlerr();
            }
        }
    }
    //warn
    //remove boot after expiration
//.........这里部分代码省略.........
开发者ID:Karpec,项目名称:gizd,代码行数:101,代码来源:sanity.php

示例6: httperr

 if (!$id) {
     httperr();
 }
 $res = mysql_query("SELECT name, filename, vip FROM torrents WHERE id = {$id}") or sqlerr(__FILE__, __LINE__);
 $row = mysql_fetch_assoc($res);
 $fn = "{$torrent_dir}/{$id}.torrent";
 if (!$row || !is_file($fn) || !is_readable($fn)) {
     httperr();
 }
 if (strlen($CURUSER['passkey']) != 32) {
     $CURUSER['passkey'] = md5($CURUSER['username'] . get_date_time() . $CURUSER['passhash']);
     mysql_query("UPDATE users SET passkey='{$CURUSER['passkey']}' WHERE id={$CURUSER['id']}");
 }
 mysql_query("UPDATE torrents SET hits = hits + 1 WHERE id = {$id}");
 if (happyHour("check") && happyCheck("checkid", $row["category"])) {
     $multiplier = happyHour("multiplier");
     $time = time();
     happyLog($CURUSER["id"], $id, $multiplier);
     mysql_query("INSERT INTO happyhour (userid, torrentid, multiplier ) VALUES (" . sqlesc($CURUSER["id"]) . " , " . sqlesc($id) . ", " . sqlesc($multiplier) . " )") or sqlerr(__FILE__, __LINE__);
 }
 // Passkey Mod
 require_once "include/benc.php";
 if ($row["vip"] == 'yes' && get_user_class() < UC_VIP) {
     stdmsg("Sorry...", "You are not allowed to download this torrent");
     exit;
 }
 $dict = bdec_file($fn, 1024 * 1024);
 $dict['value']['announce']['value'] = "{$BASEURL}/announce.php?passkey={$CURUSER['passkey']}";
 $dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']) . ":" . $dict['value']['announce']['value'];
 $dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);
 // download as zip file by putyn tbdev
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:download_zip.php

示例7: Copyright

<?php

/**
|--------------------------------------------------------------------------|
|   https://github.com/Bigjoos/                			    |
|--------------------------------------------------------------------------|
|   Licence Info: GPL						            |
|--------------------------------------------------------------------------|
|   Copyright (C) 2010 U-232 V5				            |
|--------------------------------------------------------------------------|
|   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.   |
|--------------------------------------------------------------------------|
|   Project Leaders: Mindless, Autotron, whocares, Swizzles.		    |
|--------------------------------------------------------------------------|
 _   _   _   _   _     _   _   _   _   _   _     _   _   _   _
/ \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
*/
// happy hour
if (XBT_TRACKER == false or $INSTALLER09['happy_hour'] == true) {
    if ($CURUSER) {
        require_once INCL_DIR . 'function_happyhour.php';
        if (happyHour("check")) {
            $htmlout .= "\n        <li>\n        <a class='sa-tooltip' href='browse.php?cat=" . happyCheck("check") . "'><b class='btn btn-success btn-sm'>{$lang['gl_happyhour']}</b>\n\t\t<span class='custom info alert alert-success'>\n        {$lang['gl_happyhour1']}<br /> " . (happyCheck("check") == 255 ? "{$lang['gl_happyhour2']}" : "{$lang['gl_happyhour3']}") . "<br /><font color='red'><b> " . happyHour("time") . " </b></font> {$lang['gl_happyhour4']}</span></a></li>";
        }
    }
}
//==
// End Class
// End File
开发者ID:Bigjoos,项目名称:U-232-V5,代码行数:31,代码来源:happyhour.php

示例8: happyCheck

<?php

// happy hour
if ($CURUSER) {
    require_once INCL_DIR . 'function_happyhour.php';
    if (happyHour("check")) {
        $htmlout .= "\r\n        <li>\r\n        <a class='tooltip' href='browse.php?cat=" . happyCheck("check") . "'><b><font color='red'>{$lang['gl_happyhour']}</font></b><span class='custom info'><img src='./templates/1/images/Info.png' alt='Happy Hour' height='48' width='48' /><em>{$lang['gl_happyhour']}</em>\r\n        {$lang['gl_happyhour1']} " . (happyCheck("check") == 255 ? "{$lang['gl_happyhour2']}" : "{$lang['gl_happyhour3']}") . "<br /><font color='red'><b> " . happyHour("time") . " </b></font> {$lang['gl_happyhour4']}</span></a></li>";
    }
}
//==
// End Class
// End File
开发者ID:CharlieHD,项目名称:U-232-V3,代码行数:12,代码来源:happyhour.php

示例9: happyCheck

<?php

// happy hour
if ($CURUSER) {
    if (happyHour("check")) {
        $htmlout .= "\r\n        <li>\r\n         <a class='tooltip' href='browse.php?cat=" . happyCheck("check") . "'><b>HappyHour</b><span class='custom info'><img src='./templates/1/images/Info.png' alt='Happy Hour' height='48' width='48' /><em>HappyHour</em>\r\n         Hey its now happy hour ! " . (happyCheck("check") == 255 ? "Every torrent downloaded in the happy hour is free" : "Only in the selected Category, click on HappyHour above here to go to it") . "<br /><font color='red'><b> " . happyHour("time") . " </b></font> remaining from this happy hour!\r\n        </span></a></li>";
    }
}
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:8,代码来源:happyhour.php


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