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


PHP titlebar函数代码示例

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


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

示例1: misc_comments_report

function misc_comments_report()
{
    global $apx, $db, $set, $user;
    $_REQUEST['id'] = (int) $_REQUEST['id'];
    if (!$_REQUEST['id']) {
        die('missing ContentID!');
    }
    $apx->lang->drop('report', 'comments');
    $apx->tmpl->loaddesign('blank');
    headline($apx->lang->get('HEADLINE_REPORT'), str_replace('&', '&', $_SERVER['REQUEST_URI']));
    titlebar($apx->lang->get('HEADLINE_REPORT'));
    //Absenden
    if ($_POST['send']) {
        //Kommentar auslesen
        list($commenttext) = $db->first("SELECT text FROM " . PRE . "_comments WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
        if (!$_POST['text']) {
            message('back');
        } elseif (!$commenttext) {
            message('invalid comment-ID!');
        } else {
            //eMail senden
            if ($set['comments']['reportmail']) {
                $input['URL'] = $_POST['url'];
                $input['REASON'] = $_POST['text'];
                $input['TEXT'] = $commenttext;
                sendmail($set['comments']['reportmail'], 'REPORT', $input);
            }
            message($apx->lang->get('MSG_OK'));
        }
    } else {
        $apx->tmpl->assign('POSTTO', HTTPDIR . 'misc.php?action=comments_report');
        $apx->tmpl->assign('URL', compatible_hsc($_REQUEST['url']));
        $apx->tmpl->assign('ID', $_REQUEST['id']);
        $apx->tmpl->parse('report', 'comments');
    }
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:36,代码来源:misc.php

示例2: iif

$apx->tmpl->assign('THREADSPERPAGE', $user->info['forum_tpp']);
//Rechte
$apx->tmpl->assign('LOGGED_IS_ADMIN', iif($user->info['gtype'] == 'admin', 1, 0));
$apx->tmpl->assign('LOGGED_IS_MODERATOR', iif(in_array($user->info['userid'], $foruminfo['moderator']), 1, 0));
//Aktivität
forum_activity('forum', $foruminfo['forumid']);
list($userCount, $guestCount, $activelist) = forum_get_activity('forum', $foruminfo['forumid'], $foruminfo['moderator']);
$apx->tmpl->assign('ACTIVITY_USERS', $userCount);
$apx->tmpl->assign('ACTIVITY_GUESTS', $userCount);
$apx->tmpl->assign('ACTIVITY', $activelist);
$apx->tmpl->parse('forum');
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->tmpl->assign_static('STYLESHEET', compatible_hsc($foruminfo['stylesheet']));
$apx->tmpl->assign('PATH', forum_path($foruminfo));
$apx->tmpl->assign('PATHEND', replace($foruminfo['title']));
titlebar($foruminfo['title']);
///////////////////////////////////////////////////////////////////////////////////////////////// GELESEN-STATUS
$isread = true;
//Fieser Hack: Verwende die Daten, die forum_assign.php erzeugt hat,
//denn da steht schon die lastposttime des Forums (inklusive Unterforen) drin.
foreach ($forumRec as $forum) {
    if (forum_access_visible($forum) && forum_access_read($forum) && correct_forum_password($forum)) {
        $forumLastview = max(array($user->info['forum_lastonline'], forum_readtime($forum['forumid'])));
        if ($forumLastview < $forum['lastposttime']) {
            $isread = false;
            break;
        }
    }
}
//Themen brauchen wir nur anzuschauen, wenn die Unterforen alle gelesen sind
if ($isread) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:forum.php

示例3: headline

<?php

$apx->lang->drop('avatar');
headline($apx->lang->get('HEADLINE_AVATAR'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_AVATAR'));
$extensions = array('GIF', 'JPG', 'JPE', 'JPEG', 'PNG');
if ($_POST['send']) {
    //Neuen Avatar hochladen
    if (is_uploaded_file($_FILES['avatar']['tmp_name'])) {
        require BASEDIR . 'lib/class.mediamanager.php';
        $mm = new mediamanager();
        $ext = $mm->getext($_FILES['avatar']['name']);
        $newfile = 'avatar_' . $user->info['userid'] . '_' . time() . '.' . strtolower($ext);
        //AVATARE AUTOMATISCH VERKLEINERN
        if ($set['user']['avatar_resize']) {
            require BASEDIR . 'lib/class.image.php';
            $img = new image();
            if (!in_array($ext, $extensions)) {
                message($apx->lang->get('MSG_NOTALLOWED'), 'javascript:history.back()');
            } else {
                $tempname = 'avatar_' . md5(microtime()) . '.tmp';
                $mm->uploadfile($_FILES['avatar'], 'temp', $tempname);
                $info = getimagesize(BASEDIR . getpath('uploads') . 'temp/' . $tempname);
                //Kein Bild => löschen und Ende
                if ($info[0] == 0 || $info[1] == 0) {
                    $mm->deletefile('temp/' . $tempname);
                    message($apx->lang->get('MSG_MAXDIM'), 'javascript:history.back()');
                    require 'lib/_end.php';
                }
                //Bild zu groß => verkleinern
                if ($info[0] > $set['user']['avatar_maxdim'] || $info[1] > $set['user']['avatar_maxdim']) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:avatar.php

示例4: headline

<?php

$apx->lang->drop('ignorelist');
headline($apx->lang->get('HEADLINE_IGNORELIST'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_IGNORELIST'));
$_REQUEST['del'] = (int) $_REQUEST['del'];
if ($_REQUEST['add']) {
    if ($_POST['send']) {
        if (!$_POST['username']) {
            message('back');
        } else {
            list($userid) = $db->first("SELECT userid FROM " . PRE . "_user WHERE LOWER(username)='" . addslashes(strtolower($_POST['username'])) . "'");
            $data = $db->fetch("SELECT ignored FROM " . PRE . "_user_ignore WHERE userid='" . $user->info['userid'] . "'");
            $existing = get_ids($data, 'ignored');
            if (!$userid) {
                message($apx->lang->get('MSG_NOMATCH'), 'back');
            } elseif (in_array($userid, $existing)) {
                message($apx->lang->get('MSG_EXISTS'), 'back');
            } elseif ($userid == $user->info['userid']) {
                message($apx->lang->get('MSG_NOTSELF'), 'back');
            } else {
                $db->query("INSERT INTO " . PRE . "_user_ignore (userid,ignored,reason) VALUES ('" . $user->info['userid'] . "','" . $userid . "','" . addslashes($_POST['reason']) . "')");
                $goto = mklink('user.php?action=ignorelist', 'user,ignorelist.html');
                message($apx->lang->get('MSG_ADD_OK'), $goto);
            }
        }
    } else {
        tmessage('addignore', array('USERNAME' => compatible_hsc($_REQUEST['username'])));
    }
} elseif ($_REQUEST['del']) {
    if ($_POST['del']) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:ignorelist.php

示例5: getmodulepath

    //Bewertungen
    if ($apx->is_module('ratings') && $set['videos']['ratings'] && $res['allowrating']) {
        require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
        $rate = new ratings('videos', $res['id']);
        $rate->assign_ratings($parse);
    }
    $apx->tmpl->parse('detail');
    require 'lib/_end.php';
}
//////////////////////////////////////////////////////////////////////////////////////////////////////// SUCHE
if ($_REQUEST['action'] == 'search') {
    $apx->lang->drop('list');
    $apx->lang->drop('search');
    //ERGEBNIS ANZEIGEN
    if ($_REQUEST['searchid']) {
        titlebar($apx->lang->get('HEADLINE_SEARCH'));
        //Suchergebnis auslesen
        $resultIds = '';
        list($resultIds) = getSearchResult('videos', $_REQUEST['searchid']);
        //Keine Ergebnisse
        if (!$resultIds) {
            message($apx->lang->get('MSG_NORESULT'), 'javascript:history.back();');
            require 'lib/_end.php';
        }
        //SUCHE AUSFÜHREN
        $parse = $apx->tmpl->used_vars('search_result');
        //Seitenzahlen generieren
        list($count) = $db->first("SELECT count(id) FROM " . PRE . "_videos AS a WHERE a.status='finished' AND '" . time() . "' BETWEEN starttime AND endtime AND id IN (" . implode(', ', $resultIds) . ") " . section_filter());
        pages(mklink('videos.php?action=search&amp;searchid=' . $_REQUEST['searchid'], 'videos.html?action=search&amp;searchid=' . $_REQUEST['searchid']), $count, $set['videos']['searchepp']);
        //Keine Ergebnisse
        if (!$count) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:videos.php

示例6: headline

<?php

$apx->lang->drop('register');
headline($apx->lang->get('HEADLINE_REGISTER'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_REGISTER'));
if ($_POST['send']) {
    $_POST['email1'] = trim($_POST['email1']);
    $_POST['email2'] = trim($_POST['email2']);
    $check = $check2 = false;
    list($check) = $db->first("SELECT username_login FROM " . PRE . "_user WHERE LOWER(username_login)='" . addslashes(strtolower($_POST['username'])) . "' LIMIT 1");
    if (!$set['user']['mailmultiacc']) {
        list($check2) = $db->first("SELECT email FROM " . PRE . "_user WHERE LOWER(email)='" . addslashes(strtolower($_POST['email1'])) . "' LIMIT 1");
    }
    $blockname = $user->block_username($_POST['username']);
    //Captcha prüfen
    if ($set['user']['captcha']) {
        require BASEDIR . 'lib/class.captcha.php';
        $captcha = new captcha();
        $captchafailed = $captcha->check();
    }
    if ($captchafailed) {
        message($apx->lang->get('MSG_WRONGCODE'), 'javascript:history.back()');
    } elseif (!$_POST['username'] || !$_POST['pwd1'] || !$_POST['pwd2'] || !$_POST['email1'] || !$_POST['email2']) {
        message('back');
    } elseif ($_POST['pwd1'] != $_POST['pwd2']) {
        message($apx->lang->get('MSG_PWNOMATCH'), 'javascript:history.back()');
    } elseif ($set['user']['userminlen'] && strlen($_POST['username']) < $set['user']['userminlen']) {
        message($apx->lang->get('MSG_USERLENGTH', array('LENGTH' => $set['user']['userminlen'])), 'javascript:history.back()');
    } elseif ($set['user']['pwdminlen'] && strlen($_POST['pwd1']) < $set['user']['pwdminlen']) {
        message($apx->lang->get('MSG_PWDLENGTH', array('LENGTH' => $set['user']['pwdminlen'])), 'javascript:history.back()');
    } elseif ($_POST['email1'] != $_POST['email2']) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:register.php

示例7: die

<?php

if (!$set['user']['blog']) {
    die('function disabled!');
}
$apx->lang->drop('myblog');
headline($apx->lang->get('HEADLINE_MYBLOG'), mklink('user.php?action=myblog', 'user,myblog.html'));
titlebar($apx->lang->get('HEADLINE_MYBLOG'));
//ERSTELLEN
if ($_REQUEST['do'] == 'add') {
    if ($_POST['send']) {
        if (!$_POST['title'] || !$_POST['text']) {
            message('back');
        } else {
            $_POST['userid'] = $user->info['userid'];
            $_POST['time'] = time();
            $db->dinsert(PRE . '_user_blog', 'userid,title,text,time,allowcoms');
            message($apx->lang->get('MSG_ADD_OK'), mklink('user.php?action=myblog', 'user,myblog.html'));
        }
    } else {
        //Vorschau
        if ($_POST['preview']) {
            $text = $_POST['text'];
            $text = badwords($text);
            $text = replace($text, 1);
            $text = dbsmilies($text);
            $text = dbcodes($text);
            $apx->tmpl->assign('PREVIEW', $text);
        }
        $apx->tmpl->assign('TITLE', compatible_hsc($_POST['title']));
        $apx->tmpl->assign('TEXT', compatible_hsc($_POST['text']));
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:myblog.php

示例8: message

        message($apx->lang->get('MSG_MAILNOTVALID'), 'back');
    } else {
        $goto = HTTP . $set['forum']['directory'] . '/' . mkrellink('thread.php?id=' . $threadinfo['threadid'], 'thread,' . $threadinfo['threadid'] . ',1' . urlformat($threadinfo['title']) . '.html');
        mail($_POST['toemail'], $_POST['subject'], $_POST['text'], 'From: ' . $_POST['username'] . '<' . $_POST['email'] . '>');
        message($apx->lang->get('MSG_OK'), $goto);
    }
} else {
    $url = HTTP . $set['forum']['directory'] . '/' . mkrellink('thread.php?id=' . $threadinfo['threadid'], 'thread,' . $threadinfo['threadid'] . ',1' . urlformat($threadinfo['title']) . '.html');
    //Captcha erstellen
    if ($set['main']['tellcaptcha'] && !$user->info['userid']) {
        require BASEDIR . 'lib/class.captcha.php';
        $captcha = new captcha();
        $captchacode = $captcha->generate();
    }
    $apx->tmpl->assign('POSTTO', $_SERVER['REQUEST_URI']);
    $apx->tmpl->assign('TITLE', trim(compatible_hsc(strip_tags(forum_get_prefix($threadinfo['prefix']) . ' ') . $threadinfo['title'])));
    $apx->tmpl->assign('TEXT', compatible_hsc($apx->lang->get('MAIL_TELL_TEXT', array('URL' => $url))));
    $apx->tmpl->assign('CAPTCHA', $captchacode);
    $apx->tmpl->parse('tell');
}
////////////////////////////////////////////////////////////////////////////////////////////////////////
$threadpath = array(array('TITLE' => trim(compatible_hsc(strip_tags(forum_get_prefix($threadinfo['prefix']) . ' ') . $threadinfo['title'])), 'LINK' => mkrellink('thread.php?id=' . $threadinfo['threadid'], 'thread,' . $threadinfo['threadid'] . ',1' . urlformat($threadinfo['title']) . '.html')));
$apx->tmpl->assign('PATH', array_merge(forum_path($foruminfo, 1), $threadpath));
$apx->tmpl->assign('PATHEND', $apx->lang->get('HEADLINE_TELL'));
titlebar($apx->lang->get('HEADLINE_TELL'));
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
///////////////////////////////////////////////////////////////////////////
require '../lib/_end.php';
//////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:tell.php

示例9: saveSearchResult

            $searchid = saveSearchResult('articles', $resultIds);
            header("HTTP/1.1 301 Moved Permanently");
            header('Location: ' . str_replace('&amp;', '&', mklink('articlearchive.php?action=search&searchid=' . $searchid, 'articlearchive.html?action=search&searchid=' . $searchid)));
        }
    }
    require 'lib/_end.php';
}
//////////////////////////////////////////////////////////////////////////////////////////////////////// ARTIKEL AUFLISTEN
if ($_REQUEST['month']) {
    //Verwendete Variablen auslesen
    $parse = $apx->tmpl->used_vars('archive_index');
    //Headline
    $month = substr($_REQUEST['month'], 0, 2);
    $year = substr($_REQUEST['month'], 2);
    headline(getcalmonth($month) . ' ' . $year, mklink('articlearchive.php?month=' . $month . $year, 'articlearchive,' . $month . ',' . $year . ',1.html'));
    titlebar($apx->lang->get('HEADLINE_ARCHIVE') . ': ' . getcalmonth($month) . ' ' . $year);
    //Seitenzahlen generieren
    list($count) = $db->first("SELECT count(id) FROM " . PRE . "_articles WHERE ( ( ( " . time() . " BETWEEN starttime AND endtime ) AND starttime BETWEEN '" . (mktime(0, 0, 0, intval($month), 1, intval($year)) + TIMEDIFF) . "' AND '" . (mktime(0, 0, 0, intval($month + 1), 1, intval($year)) - 1 + TIMEDIFF) . "' ) " . $filter . " " . section_filter() . " )");
    pages(mklink('articlearchive.php?month=' . $_REQUEST['month'], 'articlearchive,' . $month . ',' . $year . ',{P}.html'), $count, $set['articles']['archiveepp']);
    //Artikel ausgeben
    if ($set['articles']['archiveentrysort'] == 1) {
        $orderby = ' starttime DESC ';
    } else {
        $orderby = ' starttime ASC';
    }
    $data = $db->fetch("SELECT a.*,b.userid,b.username,b.email,b.pub_hidemail FROM " . PRE . "_articles AS a LEFT JOIN " . PRE . "_user AS b USING(userid) WHERE ( ( ( " . time() . " BETWEEN starttime AND endtime ) AND starttime BETWEEN '" . (mktime(0, 0, 0, intval($month), 1, intval($year)) + TIMEDIFF) . "' AND '" . (mktime(0, 0, 0, intval($month + 1), 1, intval($year)) - 1 + TIMEDIFF) . "' ) " . $filter . " " . section_filter() . " ) ORDER BY " . $orderby . " " . getlimit($set['articles']['archiveepp']));
    $data = articles_extend_data($data, $parse);
    //Datensatz erweitern durch Preview/Review-Daten
    //Kategorien auslesen
    if (in_array('ARTICLE.CATTITLE', $parse) || in_array('ARTICLE.CATICON', $parse) || in_array('ARTICLE.CATLINK', $parse)) {
        $catinfo = articles_catinfo(get_ids($data, 'catid'));
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:articlearchive.php

示例10: main_set_titlebar

function main_set_titlebar($title = '')
{
    if (!$title) {
        return;
    }
    titlebar($title);
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:7,代码来源:tfunctions.php

示例11: REGEXP

     $_REQUEST['letter'] = 0;
 }
 //Buchstabenfilter
 if ($_REQUEST['letter']) {
     if ($_REQUEST['letter'] == 'spchar') {
         $letterfilter = " AND title NOT REGEXP(\"^[a-zA-Z]\")";
     } else {
         $letterfilter = " AND title LIKE '" . $_REQUEST['letter'] . "%'";
     }
 }
 //Kategorie-Info auslesen
 $catinfo = $db->first("SELECT * FROM " . PRE . "_glossar_cat WHERE id='" . $_REQUEST['catid'] . "' LIMIT 1");
 $catlink = mklink('glossar.php?catid=' . $catinfo['id'], 'glossar,' . $catinfo['id'] . ',0,1' . urlformat($catinfo['title']) . '.html');
 //Headline
 headline($catinfo['title'], $catlink);
 titlebar($apx->lang->get('HEADLINE') . ': ' . $catinfo['title']);
 //Seitenzahlen
 list($count) = $db->first("SELECT count(id) FROM " . PRE . "_glossar WHERE ( catid='" . $_REQUEST['catid'] . "' AND starttime!=0 " . $letterfilter . " )");
 pages(mklink('glossar.php?catid=' . $catinfo['id'] . '&amp;letter=' . $_REQUEST['letter'], 'glossar,' . $catinfo['id'] . ',' . $_REQUEST['letter'] . ',{P}' . urlformat($catinfo['title']) . '.html'), $count, $set['glossar']['epp']);
 //Begriffe auslesen
 $data = $db->fetch("SELECT * FROM " . PRE . "_glossar WHERE ( catid='" . $_REQUEST['catid'] . "' AND starttime!=0 " . $letterfilter . " ) ORDER BY title ASC " . getlimit($set['glossar']['epp']));
 $index = array();
 if (count($data)) {
     //Nach Buchstaben sortieren
     $letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ#';
     for ($i = 0; $i < strlen($letters); $i++) {
         $index[$letters[$i]] = array();
     }
     foreach ($data as $res) {
         $letter = glossar_letter($res['title']);
         $index[$letter][] = $res;
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:glossar.php

示例12: tmessage

    tmessage('profileregonly', array(), false, false);
    require 'lib/_end.php';
}
//Benutzernamen auslesen
$profileInfo = $db->first("SELECT userid,username,pub_usegb,pub_profileforfriends FROM " . PRE . "_user WHERE userid='" . $_REQUEST['id'] . "' LIMIT 1");
list($userid, $username, $usegb, $friendonly) = $profileInfo;
$apx->tmpl->assign('USERID', $userid);
$apx->tmpl->assign('USERNAME', replace($username));
//Nur für Freunde
if ($friendonly && !$user->is_buddy_of($userid) && $user->info['userid'] != $userid && $user->info['groupid'] != 1) {
    message($apx->lang->get('MSG_FRIENDSONLY'));
    require 'lib/_end.php';
}
$apx->lang->drop('gallery');
headline($apx->lang->get('HEADLINE_GALLERY'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_GALLERY'));
//Links zu den Profil-Funktionen
user_assign_profile_links($apx->tmpl, $profileInfo);
//Galerie ausgewählt
if ($_REQUEST['galid']) {
    $galid = $_REQUEST['galid'];
    //Zugangsrechte?
    $gallery = $db->first("SELECT * FROM " . PRE . "_user_gallery WHERE id='" . $galid . "' AND owner='" . $_REQUEST['id'] . "' LIMIT 1");
    if (!$gallery['id']) {
        die('access denied!');
    }
    //Passwortschutz
    if ($gallery['password']) {
        $password = $gallery['password'];
        $pwdid = $gallery['id'];
    }
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:gallery.php

示例13: headline

<?php

$apx->lang->drop('usermap');
headline($apx->lang->get('HEADLINE_USERMAP'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_USERMAP'));
$tabledata = array();
$topleft_x = $set['user']['usermap_topleft_x'];
$topleft_y = $set['user']['usermap_topleft_y'];
$bottomright_x = $set['user']['usermap_bottomright_x'];
$bottomright_y = $set['user']['usermap_bottomright_y'];
$mapwidth = $set['user']['usermap_width'];
$mapheight = $set['user']['usermap_height'];
//Orte auslesen
$posids = array();
$location = array();
$data = $db->fetch("SELECT userid,username,locid FROM " . PRE . "_user WHERE locid!=0 ORDER BY username ASC");
if (count($data)) {
    foreach ($data as $res) {
        $locationid = $res['locid'];
        if (!isset($location[$locationid])) {
            $location[$locationid] = array();
        }
        $location[$locationid][] = array('userid' => $res['userid'], 'username' => $res['username']);
        $posids[] = $locationid;
    }
}
//Positionen auslesen
if (count($location)) {
    $posids = array_unique($posids);
    $position = $db->fetch_index("SELECT id,name,l,b FROM " . PRE . "_user_locations WHERE id IN ('" . implode("','", $posids) . "')", 'id');
    if (count($position)) {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:usermap.php

示例14: headline

<?php

$apx->lang->drop('userlist');
headline($apx->lang->get('HEADLINE_USERLIST'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_USERLIST'));
$where = '';
//Verwendete Variablen auslesen
$parse = $apx->tmpl->used_vars('list');
//Link zur Usersuche
$searchlink = mklink('user.php?action=search', 'user,search.html');
$apx->tmpl->assign('LINK_SEARCH', $searchlink);
//Anzahl
if (in_array('USERCOUNT', $parse)) {
    list($totalcount) = $db->first("SELECT count(*) FROM " . PRE . "_user WHERE active=1");
    $apx->tmpl->assign('USERCOUNT', $totalcount);
}
if (in_array('TODAYCOUNT', $parse)) {
    list($todaycount) = $db->first("SELECT count(*) FROM " . PRE . "_user WHERE active=1 AND reg_time>='" . mktime(0, 0, 0, date('n', time() - TIMEDIFF), date('d', time() - TIMEDIFF), date('Y', time() - TIMEDIFF)) . "'");
    $apx->tmpl->assign('TODAYCOUNT', $todaycount);
}
if (!$_REQUEST['letter']) {
    $_REQUEST['letter'] = '0';
}
//Buchstaben-Liste
letters(mklink('user.php?action=list&amp;sortby=' . $_REQUEST['sortby'], 'user,list,{LETTER},1.html' . iif($_REQUEST['sortby'], '?sortby=' . $_REQUEST['sortby'])));
if ($_REQUEST['letter']) {
    if ($_REQUEST['letter'] == 'spchar') {
        $where = "AND username NOT REGEXP(\"^[a-zA-Z]\")";
    } else {
        $where = "AND username LIKE '" . addslashes($_REQUEST['letter']) . "%'";
    }
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:list.php

示例15: headline

<?php

$apx->lang->drop('friends');
headline($apx->lang->get('HEADLINE_FRIENDS'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
titlebar($apx->lang->get('HEADLINE_FRIENDS'));
//Seitenzahlen
list($count) = $db->first("SELECT count(userid) FROM " . PRE . "_user WHERE ( active='1' " . $where . " )");
$pagelink = mklink('user.php?action=list&amp;sortby=' . $_REQUEST['sortby'] . '&amp;letter=' . $_REQUEST['letter'], 'user,list,' . $_REQUEST['letter'] . ',{P}.html' . iif($_REQUEST['sortby'], '?sortby=' . $_REQUEST['sortby']));
pages($pagelink, $count, $set['user']['friendsepp']);
//Buddyliste
$userdata = array();
$buddies = $user->get_buddies();
if (count($buddies)) {
    $data = $db->fetch("SELECT userid,username,groupid,realname,gender,city,plz,country,city,lastactive,pub_invisible,avatar,avatar_title,custom1,custom2,custom3,custom4,custom5,custom6,custom7,custom8,custom9,custom10 FROM " . PRE . "_user WHERE userid IN (" . implode(',', $buddies) . ") ORDER BY username ASC" . getlimit($set['user']['friendsepp']));
    if (count($data)) {
        foreach ($data as $res) {
            ++$i;
            $userdata[$i]['ID'] = $res['userid'];
            $userdata[$i]['USERID'] = $res['userid'];
            $userdata[$i]['USERNAME'] = replace($res['username']);
            $userdata[$i]['GROUPID'] = $res['groupid'];
            $userdata[$i]['ONLINE'] = iif(!$res['pub_invisible'] && $res['lastactive'] + $set['user']['timeout'] * 60 >= time(), 1, 0);
            $userdata[$i]['REALNAME'] = replace($res['realname']);
            $userdata[$i]['GENDER'] = $res['gender'];
            $userdata[$i]['CITY'] = replace($res['city']);
            $userdata[$i]['PLZ'] = replace($res['plz']);
            $userdata[$i]['COUNTRY'] = $res['country'];
            $userdata[$i]['LASTACTIVE'] = $res['lastactive'];
            $userdata[$i]['AVATAR'] = $user->mkavatar($res);
            $userdata[$i]['AVATAR_TITLE'] = $user->mkavtitle($res);
            //Custom-Felder
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:friends.php


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