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


PHP tpl::set方法代码示例

本文整理汇总了PHP中tpl::set方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::set方法的具体用法?PHP tpl::set怎么用?PHP tpl::set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tpl的用法示例。


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

示例1: __construct

 public function __construct()
 {
     $endpoint = $this;
     if ($page = page('webmention') and kirby()->path() == $page->uri()) {
         if (r::is('post')) {
             try {
                 $endpoint->start();
                 header::status(202);
                 tpl::set('status', 'success');
                 tpl::set('alert', null);
             } catch (Exception $e) {
                 header::status(400);
                 tpl::set('status', 'error');
                 tpl::set('alert', $e->getMessage());
             }
         } else {
             tpl::set('status', 'idle');
         }
     } else {
         kirby()->routes(array(array('pattern' => 'webmention', 'method' => 'GET|POST', 'action' => function () use($endpoint) {
             try {
                 $endpoint->start();
                 echo response::success('Yay', 202);
             } catch (Exception $e) {
                 echo response::error($e->getMessage());
             }
         })));
     }
 }
开发者ID:aizlewood,项目名称:2016,代码行数:29,代码来源:endpoint.php

示例2: __construct

 public function __construct($title, $hmenu, $was = 1, $file = null)
 {
     global $allgAr, $menu;
     header('Content-Type: text/html;charset=UTF-8');
     if (AJAXCALL) {
         $this->ajax = true;
         $this->json = array('title' => $title, 'hmenu' => $hmenu);
     } else {
         $this->ajax = false;
         if (!is_null($file)) {
             echo '<div style="display: block; background-color: #FFFFFF; border: 2px solid #ff0000;">!!Man konnte in einer PHP Datei eine spezielle Index angeben. Damit das Design fuer diese Datei anders aussieht. Diese Funktion wurde ersetzt. Weitere Informationen im Forum auf ilch.de ... Thema: <a href="http://www.ilch.de/forum-showposts-13758-p1.html#108812">http://www.ilch.de/forum-showposts-13758-p1.html#108812</a></div>';
         }
         $this->vars = array();
         $this->file = $file;
         // setzte das file standard 0 weil durch was definiert
         $this->was = $was;
         // 0 = smalindex, 1 = normal index , 2 = admin
         $this->design = tpl::get_design();
         $link = $this->htmlfile();
         $this->headerAdds = '';
         $this->bodyendAdds = '';
         $tpl = new tpl($link, 2);
         if ($tpl->list_exists('boxleft')) {
             $tpl->set('boxleft', $this->get_boxes('l', $tpl));
         }
         if ($tpl->list_exists('boxright')) {
             $tpl->set('boxright', $this->get_boxes('r', $tpl));
         }
         // ab 0.6 =  ... menu listen moeglich
         for ($i = 1; $i <= $allgAr['menu_anz']; $i++) {
             if ($tpl->list_exists('menunr' . $i)) {
                 $tpl->set('menunr' . $i, $this->get_boxes($i, $tpl));
             }
         }
         $ar = array('TITLE' => $this->escape_explode($title), 'HMENU' => '<span id="icHmenu">' . $this->escape_explode($hmenu) . '</span>', 'SITENAME' => $this->escape_explode($allgAr['title']), 'hmenuende' => '', 'vmenuende' => '', 'hmenubegi' => '', 'vmenubegi' => '', 'hmenupoint' => '', 'vmenupoint' => '', 'DESIGN' => $this->design);
         $tpl->set_ar($ar);
         $this->html = $tpl->get(0);
         $this->html .= '{EXPLODE}';
         $this->html .= $tpl->get(1);
         unset($tpl);
         $zsave0 = array();
         preg_match_all("/\\{_boxes_([^\\{\\}]+)\\}/", $this->html, $zsave0);
         $this->replace_boxes($zsave0[1]);
         unset($zsave0);
         $this->vars_replace();
         unset($this->vars);
         $this->html = explode('{EXPLODE}', $this->html);
     }
 }
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:49,代码来源:design.php

示例3: search_finduser

function search_finduser()
{
    $design = new design('Finduser', '', 0);
    $design->header();
    $tpl = new tpl('search_finduser');
    $tpl->out(0);
    if (isset($_POST['sub']) and !empty($_POST['name'])) {
        $name = str_replace('*', "%", $_POST['name']);
        $name = escape($name, 'string');
        $q = "SELECT `name`,`name` FROM `prefix_user` WHERE `name` LIKE '" . $name . "'";
        $tpl->set('username', dbliste('', $tpl, 'username', $q));
        $tpl->out(1);
    }
    $tpl->out(2);
    $design->footer();
}
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:16,代码来源:search.php

示例4: array

     $header = array('jquery/pstrength-min.1.2.js', 'jquery/pstrength.css', 'jquery/jquery.validate.js', 'forms/regist.js');
     $design = new design($title, $hmenu, 1);
     $design->header($header);
     if (empty($name) or empty($email)) {
         $fehler = $lang['yourdata'];
     } elseif ($name != $xname) {
         $fehler = $lang['wrongnickname'];
     } elseif ($ch_name == false) {
         $fehler = $lang['namealreadyinuse'];
     } elseif ($email != $xemail) {
         $fehler = $lang['wrongemail'];
     } elseif ($ch_email == false) {
         $fehler = $lang['emailalreadyinuse'];
     }
     $tpl = new tpl('user/regist');
     $tpl->set('name', $name);
     $tpl->set('email', $email);
     $tpl->set_out('FEHLER', $fehler, 1);
     if ($allgAr['forum_regist_user_pass'] == 1) {
         $tpl->out(2);
     }
     $tpl->out(3);
 } else {
     $pass = genkey(8);
     if (!empty($_POST['pass'])) {
         $pass = escape($_POST['pass'], 'string');
     }
     user_regist($name, $email, $pass);
     $tpl = new tpl('user/regist');
     $title = $allgAr['title'] . ' :: Users :: Registrieren :: Step 3 von 3';
     $hmenu = $extented_forum_menu . '<a class="smalfont" href="?user">User</a><b> &raquo; </b><a class="smalfont" href="?user-regist">Registrieren</a><b> &raquo; </b>Step 3 von 3' . $extented_forum_menu_sufix;
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:regist.php

示例5: design

    $abf = "SELECT id,besch,datei_name,endung FROM prefix_gallery_imgs WHERE cat = " . $cat;
    $erg = db_query($abf);
    $i = 0;
    $design = new design('Admins Area', 'Admins Area', 0);
    $design->header();
    $tpl = new tpl('selfbp-imagebrowser', 1);
    $tpl->out(0);
    gallery_admin_showcats(0, '');
    $tpl->out(1);
    while ($row = db_fetch_assoc($erg)) {
        if ($i != 0 and $i % $allgAr['gallery_imgs_per_line'] == 0) {
            echo '</tr><tr>';
        }
        $toput = 'include/images/gallery/img_' . $row['id'] . '.' . $row['endung'];
        $pfad = 'include/images/gallery/img_thumb_' . $row['id'] . '.' . $row['endung'];
        $tpl->set('toput', $toput);
        $tpl->set('pfad', $pfad);
        $tpl->out(2);
        $i++;
    }
    $design->footer(1);
}
$f = false;
if (!is_writable('./include/contents/selfbp/selfp')) {
    $f = true;
    echo 'Das include/contents/selfbp/selfp Verzeichnis braucht chmod 777 Rechte damit du eine eigene Datei erstellen kannst!<br /><br />';
}
if (!is_writable('./include/contents/selfbp/selfb')) {
    echo 'Das include/contents/selfbp/selfb Verzeichnis braucht chmod 777 Rechte damit du eine eigene Box erstellen kannst!<br /><br />';
    if ($f == true) {
        exit('Entweder das include/contents/selfbp/selfb oder das include/contents/selfbp/selfp Verzeichnis brauchen Schreibrechte sonst kann hier nicht gearbeitet werden');
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:selfbp.php

示例6: mktime

    $nm = 1;
    $ny = $y + 1;
}
$akt = mktime(0, 0, 0, $m, 1, $y);
# aktuelle timestamp
$aka = date('Y-m-d', $akt);
$ake = date('Y-m-d', mktime(0, 0, 0, $m, date('t', $akt), $y));
$jakt = mktime(0, 0, 0, 1, 1, $y);
# atkueller jahr timestamp
$jaka = date('Y-m-d', $jakt);
$jake = date('Y-m-d', mktime(0, 0, 0, 12, date('t', mktime(0, 0, 0, 12, 1, $y)), $y));
$kontodaten = db_result(db_query("SELECT t1 FROM prefix_allg WHERE k = 'kasse_kontodaten'"), 0);
$kontodaten = unescape($kontodaten);
$kontodaten = bbcode($kontodaten);
$tpl = new tpl('kasse.htm');
$tpl->set('kontodaten', $kontodaten);
$tpl->set('minus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0"), 0));
$tpl->set('plus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0"), 0));
$tpl->set('saldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse"), 0));
$tpl->set('Jminus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0 AND datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Jplus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0 AND datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Jsaldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Mminus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0 AND datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('Mplus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0 AND datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('Msaldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('month', $lang[date('F', $akt)]);
$tpl->set('pm', $pm);
$tpl->set('nm', $nm);
$tpl->set('py', $py);
$tpl->set('ny', $ny);
$tpl->set('jahr', $y);
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:kasse.php

示例7: foreach

if (sizeof($news) == 0) {
    $newsout = $tpl->get("no news");
} else {
    foreach ($news as $new) {
        $newsout .= $tpl->list_get('news', array($new["id"], $new["title"]));
    }
}
// die neuen topics holen
$hottopics = get_topics_since_last_login();
$topicsout = "";
if (sizeof($hottopics) == 0) {
    $topicsout = $tpl->get("no topics");
} else {
    foreach ($hottopics as $hottopic) {
        $listar = array($hottopic["id"], $hottopic["title"], $hottopic["author"]);
        $listar[] = ceil(($hottopic['replies'] + 1) / $allgAr['Fpanz']);
        $listar[] = $hottopic["pid"];
        $topicsout .= $tpl->list_get('topics', $listar);
    }
}
$tpl->set('news', $newsout);
$tpl->set('topics', $topicsout);
// unsere templatevariable
$info = $_SESSION;
$info["lastlogin"] = formatdate($_SESSION["lastlogin"]);
$info["title"] = $allgAr["title"];
$tpl->set_ar($info);
// ausgabe
$tpl->out("actions");
$tpl->out("info");
$design->footer();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:ucp.php

示例8: load

 function load()
 {
     // initiate the site and make pages and page
     // globally available
     $pages = $this->pages;
     $page = $this->pages->active();
     // check for ssl
     if (c::get('ssl')) {
         // if there's no https in the url
         if (!server::get('https')) {
             go(str_replace('http://', 'https://', $page->url()));
         }
     }
     // check for index.php in rewritten urls and rewrite them
     if (c::get('rewrite') && preg_match('!index.php\\/!i', $this->uri->original)) {
         go($page->url());
     }
     // check for a misconfigured subfolder install
     if ($page->isErrorPage()) {
         // if you want to store subfolders in the homefolder for blog articles i.e. and you
         // want urls like http://yourdomain.com/article-title you can set
         // RedirectMatch 301 ^/home/(.*)$ /$1 in your htaccess file and those
         // next lines will take care of delivering the right pages.
         $uri = c::get('home') . '/' . $this->uri->path();
         if ($redirected = $this->pages()->find($uri)) {
             if ($redirected->uri() == $uri) {
                 $page = $redirected;
                 $this->pages->active = $page;
                 $this->uri = new uri($uri);
             }
         }
         // try to rewrite broken translated urls
         // this will only work for default uris
         if (c::get('lang.support')) {
             $path = $this->uri->path->toArray();
             $obj = $pages;
             $found = false;
             foreach ($path as $p) {
                 // first try to find the page by uid
                 $next = $obj->{'_' . $p};
                 if (!$next) {
                     // go through each translation for each child page
                     // and try to find the url_key or uid there
                     foreach ($obj as $child) {
                         foreach (c::get('lang.available') as $lang) {
                             $c = $child->content($lang);
                             // redirect to the url if a translated url has been found
                             if ($c && $c->url_key() == $p && !$child->isErrorPage()) {
                                 $next = $child;
                             }
                         }
                     }
                     if (!$next) {
                         break;
                     }
                 }
                 $found = $next;
                 $obj = $next->children();
             }
             if ($found && !$found->isErrorPage()) {
                 go($found->url());
             }
         }
     }
     // redirect file urls (file:image.jpg)
     if ($this->uri->param('file')) {
         // get the local file
         $file = $page->files()->find($this->uri->param('file'));
         if ($file) {
             go($file->url());
         }
     }
     // redirect /home to /
     if ($this->uri->path() == c::get('home')) {
         go(url());
     }
     // redirect tinyurls
     if ($this->uri->path(1) == c::get('tinyurl.folder') && c::get('tinyurl.enabled')) {
         $hash = $this->uri->path(2);
         if (!empty($hash)) {
             $resolved = $this->pages->findByHash($hash)->first();
             // redirect to the original page
             if ($resolved) {
                 go(url($resolved->uri));
             }
         }
     }
     // set the global template vars
     tpl::set('site', $this);
     tpl::set('pages', $pages);
     tpl::set('page', $page);
     $cacheID = $this->htmlCacheID();
     $cacheModified = time();
     $cacheData = null;
     if ($this->htmlCacheEnabled) {
         // check if the cache is disabled for some reason
         $this->htmlCacheEnabled = $page->isErrorPage() || in_array($page->uri(), c::get('cache.ignore', array())) ? false : true;
         // check for the last modified date of the cache file
         $cacheModified = cache::modified($cacheID);
         // check if the files have been modified
//.........这里部分代码省略.........
开发者ID:codecuts,项目名称:lanningsmith-website,代码行数:101,代码来源:site.php

示例9: tpl

            $x .= '<br />';
        }
    }
    $tpl = new tpl('user/gallery');
    $tpl->set_out('x', $x, 4);
    $design->footer();
    exit;
}
// user gallery zeigen
$uname = db_result(db_query("SELECT `name` FROM `prefix_user` WHERE `id` = " . $uid), 0, 0);
$title = $allgAr['title'] . ' :: Users :: Gallery';
$hmenu = $extented_forum_menu . '<a class="smalfont" href="index.php?user">Users</a><b> &raquo; </b><a class="smalfont" href="?user-usergallery">Gallery</a><b> &raquo; </b>von ' . $uname . $extented_forum_menu_sufix;
$design = new design($title, $hmenu, 1);
$design->header();
$tpl = new tpl('user/gallery');
$tpl->set('uid', $uid);
$tpl->set('uname', $uname);
// bild loeschen...
if ($menu->getA(4) == 'd' and is_numeric($menu->getE(4)) and loggedin() and (is_siteadmin() or $uid == $_SESSION['authid'])) {
    $delid = escape($menu->getE(4), 'integer');
    $x = @db_result(db_query("SELECT `endung` FROM `prefix_usergallery` WHERE `uid` = " . $uid . " AND `id` = " . $delid), 0, 0);
    if (!empty($x)) {
        @unlink('include/images/usergallery/img_thumb_' . $delid . '.' . $x);
        @unlink('include/images/usergallery/img_' . $delid . '.' . $x);
        @db_query("DELETE FROM `prefix_usergallery` WHERE `uid` = " . $uid . " AND `id` = " . $delid);
    }
}
// bild hochladen
if (!empty($_FILES['file']['name']) and is_writeable('include/images/usergallery') and loggedin() and $uid == $_SESSION['authid'] and substr(ic_mime_type($_FILES['file']['tmp_name']), 0, 6) == 'image/') {
    require_once 'include/includes/func/gallery.php';
    $size = @getimagesize($_FILES['file']['tmp_name']);
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:usergallery.php

示例10: die

<?php

#   Copyright by Manuel
#   Support www.ilch.de
defined('main') or die('no direct access');
$tpl = new tpl('user/boxen_login.htm');
if (loggedin()) {
    if (user_has_admin_right($menu, false)) {
        $tpl->set('ADMIN', '<a class="box" href="admin.php?admin">' . $lang['adminarea'] . '</a>');
    } else {
        $tpl->set('ADMIN', '');
    }
    if ($allgAr['Fpmf'] == 1) {
        $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = " . $_SESSION['authid']);
        $check_pm = db_result($erg, 0);
        $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">' . $lang['messages'] . '</a>&nbsp;(' . $check_pm . ')<br>';
    } else {
        $nachrichten_link = '';
    }
    $tpl->set('SID', session_id());
    $tpl->set('NACHRICHTEN', $nachrichten_link);
    $tpl->set('NAME', $_SESSION['authname']);
    $tpl->out(0);
} else {
    if (empty($_POST['login_name'])) {
        $_POST['login_name'] = 'Nickname';
    }
    if (empty($_POST['login_pw'])) {
        $_POST['login_pw'] = 'הההההההה';
    }
    $regist = '';
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:login.php

示例11: design

         $titelzw = '';
         $namezw = '';
     }
     $cattitle = ':: ' . $titelzw . $row['name'];
     $catname = '<b> &raquo; </b>' . $namezw . $row['name'];
 } else {
     $cattitle = '';
     $catname = '';
 }
 $title = $allgAr['title'] . ' :: Downloads ' . $cattitle;
 $hmenu = '<a class="smalfont" href="?downloads">Downloads</a>' . $catname;
 $design = new design($title, $hmenu);
 $load = array('jquery/jquery.validate.js', 'forms/upload.js');
 $design->header($load);
 $tpl = new tpl('downloads');
 $tpl->set('cid', $cid);
 $erg = db_query("SELECT `id`,`name`,`desc` FROM `prefix_downcats` WHERE `cat` = " . $cid . " AND `recht` >= " . $_SESSION['authright'] . " ORDER BY `pos`");
 if (db_num_rows($erg) > 0) {
     $tpl->out(1);
     $class = 'Cnorm';
     while ($row = db_fetch_assoc($erg)) {
         $row['files'] = count_files($row['id']);
         $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
         $row['class'] = $class;
         $tpl->set_ar_out($row, 2);
     }
     $tpl->out(3);
 }
 // sortierung festlegen
 $sortierung = '`pos` ASC';
 $DOM = 'ASC';
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:downloads.php

示例12: showPreview

/**
 * zeigt den preview des texts an
 * nur aufrufen, wenn in $_POST["txt"] der text steht
 */
function showPreview()
{
    $tpl = new tpl('gbook');
    $tpl->set("TEXT", BBcode(escape($_POST["txt"], "textarea")));
    $tpl->out('preview');
}
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:10,代码来源:gbook.php

示例13: array

                db_query("UPDATE prefix_partners SET pos = " . $pos . " WHERE pos = " . $nps);
                db_query("UPDATE prefix_partners SET pos = " . $nps . " WHERE id = " . $id);
            }
        }
        // aendern vorbereiten.
        if ($menu->getA(2) == 'e') {
            $erg = db_query("SELECT id,name,banner,link FROM prefix_partners WHERE id = '" . $menu->getE(2) . "'");
            $_ilch = db_fetch_assoc($erg);
            $_ilch['pkey'] = $menu->getE(2);
        } else {
            $_ilch = array('pkey' => '', 'id' => '', 'banner' => '', 'name' => '', 'link' => '');
        }
        $tpl->set_ar_out($_ilch, 0);
        $page = $menu->getA(2) == 'p' ? $menu->getE(2) : 1;
        $limit = 20;
        $class = 'Cnorm';
        $MPL = db_make_sites($page, '', $limit, '?archiv-partners', 'partners');
        $anfang = ($page - 1) * $limit;
        $abf = "SELECT id,name,link, pos FROM prefix_partners ORDER BY pos ASC LIMIT " . $anfang . "," . $limit;
        $erg = db_query($abf);
        while ($row = db_fetch_assoc($erg)) {
            $class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
            $row['class'] = $class;
            $tpl->set_ar($row);
            $tpl->out(1);
        }
        $tpl->set('MPL', $MPL);
        $tpl->out(2);
        $design->footer();
        break;
}
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:archiv.php

示例14: vormerken

    # als upcoming war vormerken (kategorie 1)
    db_query("INSERT INTO prefix_wars (datime,`status`,gegner,tag,page,mail,icq,wo,tid,`mod`,game,mtyp,land,txt) VALUES ('" . $datum . "','1','" . $clanname . "','" . $clantag . "','" . $clanpage . "','" . $mailaddy . "','" . $icqnumber . "','" . $meetingplace . "','" . $squad . "','" . $xonx . "','" . $game . "','" . $matchtype . "','" . $clancountry . "','" . $message . "')");
    # pm an den leader
    sendpm($_SESSION['authid'], $row['mod1'], 'Fightus Anfrage', $txt, -1);
    # Wenn Co Leader != Leader
    if ($row['mod1'] != $row['mod2']) {
        sendpm($_SESSION['authid'], $row['mod2'], 'Fightus Anfrage', $txt, -1);
    }
    if ($row['mod3'] != $row['mod2'] and $row['mod1'] != $row['mod3']) {
        sendpm($_SESSION['authid'], $row['mod3'], 'Fightus Anfrage', $txt, -1);
    }
    # informieren
    echo sprintf($lang['leaderofxalert'], $row['name']);
} else {
    $clancountry = arlistee($clancountry, get_nationality_array());
    $squad = '<option value="0">choose</option>';
    $squad .= dblistee($squad, "SELECT id,name FROM prefix_groups WHERE show_fightus = 1 ORDER BY pos");
    if (empty($meetingtime)) {
        $meetingtime = date('d.m.Y - H:i:s');
    }
    $tpl = new tpl('fightus.htm');
    foreach ($far as $v) {
        if ($x > 0 and empty($_POST[$v])) {
            echo 'missing: ' . $lang[$v] . '<br />';
        }
        $tpl->set($v, ${$v});
    }
    $tpl->set('ANTISPAM', get_antispam('fightus', 120));
    $tpl->out(0);
}
$design->footer();
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:fightus.php

示例15: array

    $ar = array('AUSRICHTUNG' => $var->check_var('ausr', 'Eigene Ausrichtung', $row['ausr'], $url), 'HINTERGRUND' => $var->check_var('hgrund', 'Eigener Hintergrund', $row['hgrund'], $url), 'BBREITE' => $var->shfarben($var->shconfig('ausr'), 'Breite der Box in %', 'bbreite', $row['bbreite'], $url, 1), 'BAUS' => $var->shfarben($var->shconfig('ausr'), 'Ausrichtung der Box', 'baus', $row['baus'], $url, 2), 'HFNAME' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Namen', 'hfname', $row['hfname'], $url, 0), 'HFTEXT' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Text', 'hftext', $row['hftext'], $url, 0), 'HFINPUT' => $var->shfarben($var->shconfig('hgrund'), 'Hintergrundfarbe vom Eingabefeld', 'hfinput', $row['hfinput'], $url, 0));
    $tpl->set_ar_out($ar, 3);
}
if (escape($menu->get(1), 'string') == 'show' || escape($menu->get(1), 'string') == '') {
    $tpl->out(4);
    $erg = db_query('SELECT * FROM `prefix_shbox4` ORDER BY `id` DESC');
    while ($row = db_fetch_assoc($erg)) {
        $ar = array('ID' => $row['id'], 'NAME' => $var->colorname($var->sh_usercheck($row['uid']), get_n($row['uid'])), 'TEXTNOBB' => $row['txt'], 'TEXT' => BBcode(substr($row['txt'], 0, 70)));
        $tpl->set_ar_out($ar, 5);
    }
    $tpl->out(6);
}
/*
    function showedit($gid) {
       $ed  = db_query('SELECT * FROM `prefix_shbox4` WHERE `id` = "' . $gid . '"');
       $e   = db_fetch_assoc($ed);
       return '<form action="?shbox4admin-show-send-'.$gid.'" method="POST">
             <tr>
              <td style="background-color:#FF0000">' . $e['id'] . '</td>
              <td style="background-color:#FF0000">' . get_n($e['uid']) . '</td>
              <td style="background-color: #FF0000">' . date ('d.m.Y - H:i:s', $e['time'] ) . '</td>
              <td style="background-color:#FF0000"><textarea name="edittxt" rows="2" cols="50" wrap="virtual">' . $e['txt'] . '</textarea></td>
              <td style="background-color: #FF0000" align="center"><input name="subedit" type="submit" value="ändern" /></td>
              <td style="background-color: #FF0000" align="center">&nbsp;</td>
             </tr>
            </form>';
    }
*/
$tpl->set('VERSIONFO', $var->version());
$tpl->out(7);
$design->footer();
开发者ID:NachtWolf82,项目名称:ShBox,代码行数:31,代码来源:shbox4admin.php


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