コード例 #1
0
 /**
  * @inheritdoc
  */
 public function display($template)
 {
     // strip off .tpl from the end for backwards compatibility with older apps
     if (substr($template, -4) == '.tpl') {
         $template = substr($template, 0, -4);
     }
     // these two are special templates used by the Phreeze controller and dispatcher
     if ($template == "_redirect") {
         header("Location: " . $this->savant->url);
         die;
     } elseif ($template == "_error") {
         $this->savant->display('_error' . $TEMPLATE_EXTENSION);
     } else {
         $this->savant->display($template . self::$TEMPLATE_EXTENSION);
     }
 }
コード例 #2
0
function savant()
{
    global $content, $sitename;
    include_once 'Savant3.php';
    $tpl = new Savant3();
    $tpl->setEscape();
    $tpl->title = $sitename;
    $tpl->content = $content;
    $tpl->display('index.tpl.php');
}
コード例 #3
0
ファイル: helpers.php プロジェクト: pfefferle/IndieNews
function partial($template, $data, $debug = false)
{
    global $app;
    if ($debug) {
        $tpl = new Savant3(\Slim\Extras\Views\Savant::$savantOptions);
        echo '<pre>' . $tpl->fetch($template . '.php') . '</pre>';
        return '';
    }
    ob_start();
    $tpl = new Savant3(\Slim\Extras\Views\Savant::$savantOptions);
    foreach ($data as $k => $v) {
        $tpl->{$k} = $v;
    }
    $tpl->display($template . '.php');
    return ob_get_clean();
}
コード例 #4
0
 public function err404($admin = false, $text = '')
 {
     global $msg_charset, $html_lang, $msg_script6, $msg_script52, $msg_script54, $SETTINGS;
     header('HTTP/1.0 404 Not Found');
     header('Content-type: text/html; charset=' . $msg_charset);
     if ($admin) {
         $f = array('{charset}', '{lang}', '{back}', '{error}', '{oops}');
         $r = array($msg_charset, $html_lang, $msg_script54, $text ? $text : $msg_script6, $msg_script52);
         echo file_exists(PATH . 'templates/system/headers/404.php') ? str_replace($f, $r, file_get_contents(PATH . 'templates/system/headers/404.php')) : '404: Page Not Found';
     } else {
         if (!class_exists('Savant3')) {
             include PATH . 'control/lib/Savant3.php';
         }
         $tpl = new Savant3();
         $tpl->assign('LANG', $html_lang);
         $tpl->assign('CHARSET', $msg_charset);
         $tpl->assign('SETTINGS', $SETTINGS);
         $tpl->assign('TXT', array($msg_script52, $msg_script6, $msg_script54));
         $tpl->display('content/' . (defined(MS_TEMPLATE_SET) ? MS_TEMPLATE_SET : '_default_set') . '/headers/404.tpl.php');
     }
     exit;
 }
コード例 #5
0
ファイル: faq-search.php プロジェクト: sushilfl88/test-abcd
            }
        }
    }
    // Are we searching for anything..
    if ($SQL) {
        $html = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'no'));
        $dataCount = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'yes'));
    }
}
// Pagination..
if ($dataCount > $SETTINGS->quePerPage) {
    define('PER_PAGE', $SETTINGS->quePerPage);
    $PTION = new pagination($dataCount, '?q=' . urlencode($_GET['q']) . mswQueryParams(array('q', 'p', 'next')) . '&amp;next=');
    $pageNumbers = $PTION->display();
}
// Header..
include PATH . 'control/header.php';
// Template initialisation..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_pkbase, $msg_header4, $msg_kbase53));
$tpl->assign('SCH_TXT', $msg_header4);
$tpl->assign('FAQ', $html);
$tpl->assign('RESULTS', $dataCount);
$tpl->assign('MSDT', $MSDT);
$tpl->assign('PAGES', $pageNumbers);
// Global vars..
include PATH . 'control/lib/global.php';
// Global vars..
$tpl->display('content/' . MS_TEMPLATE_SET . '/faq-search.tpl.php');
// Footer..
include PATH . 'control/footer.php';
コード例 #6
0
ファイル: image.php プロジェクト: iSkript/Imgur-clone
    // возвращаем имя изображения и расширение
    echo json_encode(array('title' => $image['title'], 'name' => $image['image'] . '.' . $image['ext'], 'when_upl' => $uploaded));
    // echo $image['image'].'.'.$image['ext'];
} elseif (isset($_GET['names']) && isset($_SESSION['image_name'])) {
    // массив имен изображений
    $image_names = $_GET['names'];
    // выбираем первое фото из списка
    $image = $images->findOne(array('image' => $image_names[0]));
    if ($image) {
        // определяем кол-во фоток в массиве 1,2 или 3
        $number_of_images = count($image_names);
        $tpl->image = $image;
        $tpl->session_image = trim($_SESSION['image_name']);
        $tpl->number = $number_of_images;
        $tpl->url = $url[1];
        $tpl->display('tpl/image.tpl.php');
    } else {
        $tpl->display('tpl/404.tpl.php');
    }
} elseif (isset($_GET['names']) && !isset($_SESSION['image_name'])) {
    // читаем комментарии изображения
    // $comments = $db->comments;
    // генерим случайное число, используется для показа фоток из галереи
    if (lcg_value() > 0.5) {
        // по возрастанию?
        $rnd = 1;
    } else {
        // по убыванию?
        $rnd = -1;
    }
    $date = date("d-m-Y", time() - 24 * 3600);
コード例 #7
0
ファイル: index.php プロジェクト: zinzia/kapalonline
        } else {
            $status = '';
        }
        $tpl->content = $gui->renderConfig($security->config, $status);
        $content = 'config.tpl.php';
        break;
    case 'login':
        if (isset($_POST['password'])) {
            $retry = $security->checkLogin($_POST['password']);
        }
        $tpl->content = $gui->renderLogin(isset($retry));
        $content = 'login.tpl.php';
        break;
    case 'browser':
        $security->checkPath();
        if (isset($_POST['submit_delete'])) {
            unset($_POST['submit_delete'], $_POST['p']);
            $filesystem->delete($security->absolutePath, $_POST);
        }
        $tpl->absolutePath = $security->absolutePath;
        $tpl->relativePath = $security->relativePath;
        $tpl->sortName = isset($_GET['sortName']) ? $_GET['sortName'] : 'filename';
        $tpl->sortOrder = isset($_GET['sortOrder']) ? $_GET['sortOrder'] : 'asc';
        $tpl->content = $gui->renderResults($filesystem->read($security->absolutePath, $security->relativePath, $tpl->sortName, $tpl->sortOrder));
        $tpl->up = $gui->renderUp($filesystem->dirUp($security->relativePath), $security->config['root']);
        $content = 'browser.tpl.php';
        break;
}
$tpl->display('header.tpl.php');
$tpl->display($content);
$tpl->display('footer.tpl.php');
コード例 #8
0
ファイル: output.php プロジェクト: N3X15/ATBBS-Plus
	static function HardError($err)
	{
		if(self::$API) die("ERROR "+$err);
		
		$tpl=new Savant3();
		$tpl->err=$err;
		$tpl->setPath('template',THISDIR.'/_templates/');
		$tpl->display('syserror.tpl.php');
		die('');
	}
コード例 #9
0
ファイル: photo.php プロジェクト: jpoon/ubcbadm_web
<?php

require_once 'savant/Savant3.php';
$tpl = new Savant3();
$content = array(array('title' => 'Photo Gallery', 'text' => 'Badminton Club boasts a year full of events and activities.
                Browse our photo gallery for a glimpse into the club and view the
                variety of our events that we offer.</p>

                <iframe align="center" src="http://www.flickr.com/slideShow/index.gne?user_id=45726881@N03" width="700" height="650" frameBorder="1" scrolling="no"></iframe>'));
$tpl->content = $content;
$tpl->display('template.php');
コード例 #10
0
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: account-dashboard.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
// Check log in..
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) {
    header("Location:index.php?p=login");
    exit;
}
$title = $msg_header3;
$tz = $LI_ACC->timezone ? $LI_ACC->timezone : $SETTINGS->timezone;
include PATH . 'control/header.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_header13, $MSDT->mswDateTimeDisplay(strtotime(date('Y-m-d', $MSDT->mswUTC())), $SETTINGS->dateformat, $tz), $msg_public_dashboard1, $msg_public_dashboard2, $msg_public_dashboard3, $msg_public_dashboard4, $msg_public_dashboard5, str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_public_dashboard11), $msg_public_dashboard12));
$tpl->assign('TICKETS', $MSTICKET->ticketList(MS_PERMISSIONS, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
$tpl->assign('DISPUTES', $MSTICKET->disputeList(MS_PERMISSIONS, $LI_ACC->id, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-dashboard.tpl.php');
include PATH . 'control/footer.php';
コード例 #11
0
ファイル: index.php プロジェクト: nvcWilson/Savant-CoinCod
		<ol>
        
		<li><a name="Question1">What is CoinCod?</a></li>
        Coincod is a revolutionary auction concept. The basic idea is to offer brand new products at very attractive prices. Or we rather term it as "UnAffordable To Affordable".
        
		<li><a name="Question2">How does CoinCod work?</a></li>
        Every day Coincod sells new branded products at incredibly low prices in auctions. With each placed bid, the price of the auctioned item decreases or increases by 1 cent ($0.01). Once an auction has started and you bid, we reset the countdown back to its limit time. If no-one else bids before the clock has reached countdown, you win the auction item at a bargain price!
        
		<li><a name="Question3">How can I start using CoinCod?</a></li>
        You need to register as a user at coincod.com. It will take you 1 minute. After a successful completion you can buy bids on our site and participate in any auctions you wish. 
        
		<li><a name="Question4">How do I participate in the auction?</a></li>
        In order to participate you need to submit a bid in an ongoing auction. You can either place a bid by sending a text message from your mobile phone or by bidding through a Coincod online account. Creating a Coincod account is easy, simply click on "sign up" and follow the instructions. Once registered, you can upload bids on your account through all channels (e.g. e-banking) that are available.
        
		<li><a name="Question5">There is an auction that ended today and now I see it re-listed. Why?</a></li>
        True, there is a possibility that it might happen. This is when the auction winner turns out to be fraudulent – for example someone who has registered multiple accounts in our system without entering any personal data and automatically received free bids for each username created. All bids by such fraud users will be considered void and the auction will be re-listed from the same point when it ended so that real users can have a possibility to win it. Our support team is doing its best on a daily basis to filter such cases.

		</ol>
		</section>  <!--end div faq-->', "bottom_image" => '<img class="bottom" src="../../template/template_image/bottom/faq.png" alt="questions">'));
// Assign values to the Savant instance.
$tpl->template_path = $template_path;
$tpl->resource_path = $resource_path;
$tpl->title = $title;
$tpl->meta_description = $meta_description;
$tpl->content_container = $contentContainer;
// Display a template using the assigned values.
$tpl->login = $tpl->fetch('login.tpl.php');
$tpl->header = $tpl->fetch('header.tpl.php');
$tpl->footer = $tpl->fetch('footer.tpl.php');
$tpl->display('main.tpl.php');
コード例 #12
0
ファイル: index.php プロジェクト: anishsheela/php-sample-apps
                            } else {
                                display_item();
                            }
                        }
                    }
                }
            } else {
                if ($page == "getdetails") {
                    require_once "./include/getdetails.inc";
                } else {
                    if (isset($_POST['Bill'])) {
                        bill();
                    } else {
                        if (isset($_GET['view'])) {
                            if ($_GET['view'] != NULL) {
                                display_bill($_GET['view']);
                            } else {
                                global $tpl;
                                $tpl->title = "Bill Details";
                                $tpl->content = $tpl->fetch("./template/billno.php.tpl");
                                $tpl->display("./template/index.php.tpl");
                            }
                        } else {
                            generate_bill();
                        }
                    }
                }
            }
        }
    }
}
コード例 #13
0
ファイル: statislogin.php プロジェクト: iSkript/Imgur-clone
<?php

include_once 'lib/connect.php';
require_once 'lib/Savant3.php';
session_start();
$tpl = new Savant3();
// Если по кнопке входа кликнули
if (isset($_REQUEST['login'])) {
    // получаем username и пароль
    $username = trim($_REQUEST['username']);
    $password = trim($_REQUEST['password']);
    $admins = $db->admins;
    // если username и пароль совпадают
    if ($admins->find(array('username' => $username, 'password' => md5($password)))->count() == 1) {
        $_SESSION['username'] = $username;
        header('Location: statis.php');
    } else {
        echo 'Неправильный username или пароль!';
    }
}
$tpl->display('tpl/statislogin.tpl.php');
コード例 #14
0
    define('T_PERMS', 't');
    include PATH . 'control/system/accounts/account-ticket-reply.php';
}
// Is IP blank?
if ($T->ipAddresses == '' && $T->visitorID == $LI_ACC->id) {
    $MSTICKET->updateIP($T->id);
    $T->ipAddresses = mswIPAddresses();
}
// Variables..
$title = str_replace('{ticket}', mswTicketNumber($_GET['t']), $msg_showticket4);
include PATH . 'control/header.php';
$tpl = new Savant3();
$tpl->assign('TICKET', $T);
$tpl->assign('TXT', array($title, $msg_header11, $msg_header3, $msg_main11, $MSYS->levels($T->priority), $MSDT->mswDateTimeDisplay($T->ts, $SETTINGS->dateformat), $MSDT->mswDateTimeDisplay($T->ts, $SETTINGS->timeformat), $msg_viewticket75, $MSYS->department($T->department, $msg_script30), str_replace('{url}', 'index.php?t=' . $_GET['t'] . '&amp;lk=yes', $msg_viewticket45), $msg_public_ticket, $msg_open19, $msg_newticket43, $msg_viewticket101, $msg_showticket5, $msg_viewticket78, $msg_newticket37, $msg_newticket38, $attachRestrictions, $bb_code_buttons, $msg_public_ticket3, $msg_public_ticket4, $msg_public_ticket9, $msg_viewticket27, $msg_public_ticket10));
$tpl->assign('COMMENTS', $MSPARSER->mswTxtParsingEngine($T->comments));
$tpl->assign('CUSTOM_FIELD_DATA', $MSFIELDS->display($T->id));
$tpl->assign('ATTACHMENTS', $MSTICKET->attachments($T->id));
$tpl->assign('TICKET_REPLIES', $MSTICKET->replies($T->id, mswSpecialChars($LI_ACC->name)));
$tpl->assign('ENTRY_CUSTOM_FIELDS', $MSFIELDS->build('reply', $T->department));
$tpl->assign('SYSTEM_MESSAGE', !empty($eFields) ? str_replace('{count}', count($eFields), $msg_public_ticket8) : $ticketSystemMsg);
// Post fields..will populate on refresh..
$tpl->assign('POST', array('comments' => isset($_POST['comments']) ? mswSpecialChars($_POST['comments']) : ''));
// Custom fields for form refresh..
$tpl->assign('CFIELDS', isset($_POST['comments']) ? $MSFIELDS->build('reply', $T->department) : '');
// Field flags for errors..
$tpl->assign('EFIELDS', $eFields);
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-view-ticket.tpl.php');
include PATH . 'control/footer.php';
コード例 #15
0
ファイル: disabled.php プロジェクト: sushilfl88/test-abcd
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: disabled.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
// Auto enable..
$now = $MSDT->mswDateTimeDisplay(strtotime(date('Y-m-d', $MSDT->mswUTC())), 'Y-m-d', $SETTINGS->timezone);
if ($SETTINGS->autoenable != '0000-00-00' && $SETTINGS->autoenable <= $now) {
    mysql_query("UPDATE `" . DB_PREFIX . "settings` SET\n  `sysstatus`   = 'yes',\n  `autoenable`  = '0000-00-00'\n  ");
    header("Location: index.php");
    exit;
}
$title = $msg_offline;
include PATH . 'control/header.php';
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswCleanData($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : ''));
$tpl->assign('TXT', array($msg_offline, mswCleanData($SETTINGS->offlineReason)));
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/system-disabled.tpl.php');
include PATH . 'control/footer.php';
コード例 #16
0
ファイル: gallery.php プロジェクト: iSkript/Imgur-clone
            echo "<a href=\"http://imgush.ru/gallery/{$image_cand['image']}\"><img src=\"http://i.imgush.ru/{$image_cand['image']}s.{$image_cand['ext']}\"></a>";
            echo '</div>';
        }
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div id="imagelist-loader" class="textbox">';
        echo '<img src="/img/album_loader.gif">';
        echo '</div>';
    }
} elseif (!isset($_GET['page']) && !isset($image_name) && !isset($_POST['from']) && !isset($_POST['gotimage'])) {
    $date = date("d-m-Y", time() - 24 * 3600);
    // на день назад
    // лучшие фото сегодня, это лучшие фото, отобранные админами вчера
    $cursor = $images->find(array('gallery' => 1, 'date' => new MongoRegex("/{$date}/")))->sort(array('date' => -1))->limit(40);
    $tpl->cursor = $cursor;
    $tpl->display('tpl/gallery.tpl.php');
}
if (isset($image_name)) {
    // генерим случайное число, используется для показа фоток из галереи
    if (lcg_value() > 0.5) {
        // по возрастанию?
        $rnd = 1;
    } else {
        // по убыванию?
        $rnd = -1;
    }
    $date = date("d-m-Y", time() - 24 * 3600);
    // на день назад
    // показываем фото
    // достаем имя фото из БД
    $image = $images->findOne(array('gallery' => 1, 'image' => $image_name));
コード例 #17
0
ファイル: statis.php プロジェクト: iSkript/Imgur-clone
include_once 'lib/connect.php';
require_once 'lib/functions.php';
require_once 'lib/Savant3.php';
require_login();
$tpl = new Savant3();
date_default_timezone_set('Asia/Novosibirsk');
// выбираем коллекцию
$images = $db->images;
// всего изображений на сайте
$total_images = $images->find()->count();
// просмотр конкретного фото
if (isset($_GET['img'])) {
    $img = $_GET['img'];
    $image_for_view = $images->findOne(array('gallery' => 0, 'image' => $img));
    $tpl->img = $image_for_view;
    $tpl->display('tpl/viewimage.tpl.php');
}
// подгрузка фоток
if (isset($_GET['page'])) {
    $page = $_GET['page'];
    $date = date("d-m-Y", time() - $page * 24 * 3600);
    $cursor1 = $images->find(array('gallery' => 0, 'title' => array('$ne' => ''), 'date' => new MongoRegex("/{$date}/")))->sort(array('date' => -1));
    $chislo_fotok = $cursor1->count();
    if ($chislo_fotok == 0) {
        echo '<div class="headerbox">';
        echo '<div class="left">';
        echo '<h2>Загрузки ' . showDate(strtotime($date)) . '</h2>';
        echo '</div>';
        echo '<div class="clear"></div>';
        echo '</div>';
        echo '<div class="posts">';
コード例 #18
0
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: account-profile.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
// Check log in..
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) {
    header("Location:index.php?p=login");
    exit;
}
$title = $msg_header15;
include PATH . 'control/header.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_header3, $msg_public_account, $msg_public_account2, $msg_public_account3, $msg_public_account4, $msg_public_create4, $msg_public_account5, $msg_main3, $msg_public_create3, $msg_public_profile3, $msg_public_profile4, $msg_public_profile6, $msg_public_profile7, $msg_public_profile8, $msg_public_profile9));
$tpl->assign('TIMEZONES', $timezones);
$tpl->assign('LANGUAGES', $MSYS->languages());
$tpl->assign('ACCOUNT', (array) $LI_ACC);
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-profile.tpl.php');
include PATH . 'control/footer.php';
コード例 #19
0
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include "librerias/Savant3.php";
$plantilla = new Savant3();
$plantilla->display("plantillas/panel.tpl.php");
コード例 #20
0
ファイル: index.php プロジェクト: sdgdsffdsfff/Tracer-2
<?php

/*!
 * Tracer is an XDebug trace output analyzer. It takes the trace output from 
 * XDebug and makes it pretty and easy to read allowing the developer to quickly
 * identify bottlenecks and areas of optimization.
 * 
 * @author Mark Litchfield <*****@*****.**>
 * @version 0.1-alpha
 */
require_once 'tracer.config.php';
$tpl = new Savant3();
$tpl->file_list = new TraceFileList($_ENV['xdebug']['trace_output_dir']);
$fields = array('file' => FILTER_SANITIZE_STRING, 'memory_alert' => FILTER_VALIDATE_FLOAT, 'time_alert' => FILTER_VALIDATE_FLOAT);
$post = filter_input_array(INPUT_POST, $fields);
if (isset($post['file'])) {
    $tpl->post = $post;
    $tpl->output = $tpl->fetch('/template/output.html.php');
}
$tpl->trace_form = $tpl->fetch('/template/trace-form.html.php');
$tpl->display('template/base.html.php');
コード例 #21
0
ファイル: faq.php プロジェクト: iSkript/Imgur-clone
<?php

require_once 'lib/Savant3.php';
$tpl = new Savant3();
$tpl->display('tpl/faq.tpl.php');
コード例 #22
0
            $message = str_replace('{email}', $A->email, $msg_public_create10);
        }
    }
    // Show message..
    $title = $msg_public_create7;
    include PATH . 'control/header.php';
    $tpl = new Savant3();
    $tpl->assign('TXT', array($msg_public_create7, $msg_public_create, $message));
    // Global vars..
    include PATH . 'control/lib/global.php';
    // Load template..
    $tpl->display('content/' . MS_TEMPLATE_SET . '/account-verification-message.tpl.php');
    include PATH . 'control/footer.php';
    exit;
}
$title = $msg_public_create;
// Is this option enabled?
if ($SETTINGS->createAcc == 'no') {
    $HEADERS->err403();
}
include PATH . 'control/header.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_public_create, $msg_public_create2, $msg_main3, $msg_public_create3, $msg_public_create, $msg_public_create4, $msg_public_ticket9, $msg_public_create5, $msg_public_create6, $msg_public_create11));
$tpl->assign('RECAPTCHA', $SETTINGS->recaptchaPublicKey && $SETTINGS->recaptchaPrivateKey ? $MSYS->recaptcha($SETTINGS) : '');
$tpl->assign('RECPA_ERR_PARAM', $SETTINGS->recaptchaPublicKey && $SETTINGS->recaptchaPrivateKey ? ',recaptcha_response_field' : '');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-create.tpl.php');
include PATH . 'control/footer.php';
コード例 #23
0
ファイル: header.php プロジェクト: sushilfl88/test-abcd
  Script: Maian Support
  Written by: David Ian Bennett
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  This File: header.php
  Description: Header Parsing File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err404();
}
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('LANG', $html_lang);
$tpl->assign('DIR', $lang_dir);
$tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : ''));
$tpl->assign('TOP_BAR_TITLE', str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header));
$tpl->assign('SCRIPTPATH', $SETTINGS->scriptpath);
$tpl->assign('LOGGED_IN', MS_PERMISSIONS != 'guest' ? 'yes' : 'no');
$tpl->assign('TXT', array($msg_header8, $msg_main2, $msg_header3, $msg_header11, $msg_header12, $msg_header2, MS_PERMISSIONS != 'guest' && isset($LI_ACC->name) ? str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_header6) : '', $msg_header13, $msg_header14, $msg_header15, $msg_header16, $msg_header4));
$tpl->assign('JS_CSS_BLOCK', $MSYS->jsCSSBlockLoader($ms_js_css_loader, $SETTINGS->scriptpath));
$tpl->assign('FAQ_LINKS', $SETTINGS->kbase == 'yes' ? $FAQ->menu() : '');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/header.tpl.php');
コード例 #24
0
ファイル: index.php プロジェクト: zmellal/alfanous
header("Cache-Control: max-age=3600, must-revalidate");
header(sprintf("Last-Modified: %s", date("r", filemtime($_SERVER['SCRIPT_FILENAME']))));
# Query JSON service
if ($mv->search) {
    # JSON query
    $handle = fopen($mv->query_site . $mv->query_search . $mv->query_page . $mv->query_string . $mv->query_fuzzy, "rb");
    $mv->contents = stream_get_contents($handle);
    fclose($handle);
    $mv->json = json_decode($mv->contents);
    # Pages calculation
    if ($mv->json) {
        # Pages
        $mv->nb_pages = floor(($mv->json->interval->total - 1) / 10) + 1;
        $mv->page_nb = floor(($mv->json->interval->start - 1) / 10) + 1;
        # Alfanous JSON service doesn't serve more than 100 pages.
        $mv->hit_page_limit = False;
        if ($mv->nb_pages > RESULTS_LIMIT) {
            $mv->hit_page_limit = True;
            $mv->nb_pages = RESULTS_LIMIT;
        }
    }
}
if (DEBUG and $mv->search) {
    var_dump($mv->json);
}
# pass variables to template engine
$tpl->mv = $mv;
$tpl->mt = $mt;
# display template
$tpl->display($mv->theme_dir . "index.tpl.php");
コード例 #25
0
<?php

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Script: Maian Support
  Programmed & Designed by: David Ian Bennett
  E-Mail: support@maianscriptworld.co.uk
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: account-suspended.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
$title = $msg_public_login5;
include PATH . 'control/header.php';
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('TITLE', $msg_public_login5);
$tpl->assign('TXT', array($msg_public_login5, mswCleanData($LI_ACC->reason)));
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-suspended.tpl.php');
include PATH . 'control/footer.php';
コード例 #26
0
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) {
    header("Location:index.php?p=login");
    exit;
}
// Variables..
$pageNumbers = '';
$title = isset($_GET['qt']) ? $msg_portal17 : $msg_header11;
$dataCount = $MSTICKET->ticketList(MS_PERMISSIONS, array($limitvalue, $limit), true);
// Pagination..
if ($dataCount > $limit) {
    define('PER_PAGE', $limit);
    $PTION = new pagination($dataCount, '?p=' . $_GET['p'] . mswQueryParams(array('p', 'next')) . '&amp;next=');
    $pageNumbers = $PTION->display();
}
include PATH . 'control/header.php';
// Filters..
include PATH . 'control/system/accounts/account-history-filters.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_header11, $msg_header3, str_replace('{count}', $dataCount, $msg_public_history), $msg_header4, $msg_viewticket25, $msg_open36, $msg_open37, $msg_public_history2, $msg_public_history3, $msg_script45, $msg_search20, $msg_viewticket107, $msg_response6, $msg_public_history13));
$tpl->assign('TICKETS', $MSTICKET->ticketList(MS_PERMISSIONS, array($limitvalue, $limit)));
$tpl->assign('PAGES', $pageNumbers);
$tpl->assign('IS_DISPUTED', 'no');
$tpl->assign('DD_ORDER', $orderBy);
$tpl->assign('DD_FILTERS', $filterBy);
$tpl->assign('DD_DEPT', $deptFilter);
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-history.tpl.php');
include PATH . 'control/footer.php';
コード例 #27
0
ファイル: 404.php プロジェクト: iSkript/Imgur-clone
<?php

require_once 'lib/Savant3.php';
$tpl = new Savant3();
$tpl->display('tpl/404.tpl.php');
コード例 #28
0
ファイル: faq-question.php プロジェクト: sushilfl88/test-abcd
        if (isset($CAT->subcat) && $CAT->subcat > 0) {
            define('IS_SUB', $CAT->subcat);
        }
        $subt = $msg_header8 . ': ' . $CAT->name;
    }
} else {
    if (isset($_GET['q'])) {
        $subt = $msg_header8 . ': ' . $msg_pkbase3;
    }
}
// Header..
include PATH . 'control/header.php';
// Cookie set..
if (isset($_COOKIE[md5(SECRET_KEY) . COOKIE_NAME])) {
    $cky = unserialize($_COOKIE[md5(SECRET_KEY) . COOKIE_NAME]);
}
// Template initialisation..
$tpl = new Savant3();
$tpl->assign('TXT', array($subt, $msg_kbase52, $msg_kbase54, $msg_pkbase18));
$tpl->assign('SCH_TXT', $msg_header4);
$tpl->assign('ANSWER', (array) $QUE);
$tpl->assign('ANSWER_TXT', $MSPARSER->mswTxtParsingEngine($QUE->answer));
$tpl->assign('MSDT', $MSDT);
$tpl->assign('ATTACHMENTS', $FAQ->attachments($SETTINGS));
$tpl->assign('FAQ_COOKIE_SET', in_array($_GET['a'], $cky) ? 'yes' : 'no');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/faq-question.tpl.php');
// Footer..
include PATH . 'control/footer.php';
コード例 #29
0
$email = $_SESSION['email'];
// set search path for templates
$tpl->addPath('template', '../template');
// Create a title.
$template_path = "../template/";
$resource_path = "../";
$title = "Site Status Update";
$meta_description = "Welcome to CoinCod - a unique auction system built to draw everyone closer to their dream products.";
$admin_link = "<div id='admin_menu'>\n\t\t\t\t<a href='../user_profile/?id={$id}'>Profile</a>&ndash;\n        \t\t<a href='../admin_site/product_form.php'>Add Product </a>&ndash;\n\t\t\t\t<a href='../admin_site/user_list.php'>User Listing</a>&ndash;\n\t\t\t\t<a href='../admin_site/sitestatus_updateform.php'>Site Status</a>\n\t\t\t</div></br>";
$status_update = '<form action="status_updatefunc.php" enctype="multipart/form-data" name="myForm" id="myForm" method="post">
			<td>
				<select id="status" name="status" size="1">
					<option value="Well as usual running like charm.">Well as usual running like charm.</option>
					<option value="Website Maintenance! Temporary Down!">Website Maintenance! Temporary Down!</option>
				</select>
			</td>
			<input type="submit" name="button" class="form_button" value="Update" />
		</form>';
$contentContainer = array(array("title" => $title, "content" => $id == 1 ? $admin_link . $status_update : $status_update, "bottom_image" => ''));
// Assign values to the Savant instance.
$tpl->template_path = $template_path;
$tpl->resource_path = $resource_path;
$tpl->title = $title;
$tpl->meta_description = $meta_description;
$tpl->content_container = $contentContainer;
// Display a template using the assigned values.
$tpl->login = $tpl->fetch($template_path . 'login.tpl.php');
$tpl->header = $tpl->fetch($template_path . 'header.tpl.php');
$tpl->footer = $tpl->fetch($template_path . 'footer.tpl.php');
$tpl->display($template_path . 'main.tpl.php');
コード例 #30
0
ファイル: index.php プロジェクト: iSkript/Imgur-clone
                // добавляем новый документ - изображение в коллекцию Images
                $collection->insert(array('image' => $image_name, 'ext' => $p[1], 'title' => '', 'views' => 0, 'gallery' => 0, 'date' => date("d-m-Y H:i:s")));
                $image_names[] = $image_name;
                setcookie('Img', $image_name);
            } else {
                echo 'Вы можете загрузить только фото!';
            }
        }
    }
    // быдлокод
    switch (count($image_names)) {
        case 1:
            header("Location: /{$image_names['0']}");
            break;
        case 2:
            header("Location: /{$image_names['0']},{$image_names['1']}");
            break;
        case 3:
            header("Location: /{$image_names['0']},{$image_names['1']},{$image_names['2']}");
            break;
    }
    // setcookie('Img', $image_name);
}
$date = date("d-m-Y", time() - 24 * 3600);
// на день назад
$images = $db->images;
$cursor = $images->find(array('gallery' => 1, 'date' => new MongoRegex("/{$date}/")))->sort(array('date' => -1))->limit(12);
$tpl = new Savant3();
$tpl->cursor = $cursor;
$tpl->display('tpl/index.tpl.php');