public function render($tpl_name)
 {
     $tpl = new STemplate();
     $tpl->vars =& $this->page->vars;
     $tpl->controls =& $this->page->controls;
     return $tpl->process($tpl_name);
 }
Пример #2
0
 public static function render_layout($ctx, $content, $params)
 {
     $tpl = new STemplate();
     $tpl->vars['__content__'] = $content;
     if ($params === null) {
         $params = array('path' => '');
     }
     if (array_key_exists('controller', $ctx->params)) {
         $ctx->params['controller']->process($ctx, $params, $tpl->vars);
     }
     $path = BASE . 'layouts/' . $ctx->layout . '.php';
     if (@file_exists($path)) {
         require_once $path;
         $class_name = self::capitalize_words($ctx->layout) . 'Layout';
         $layout_inst = new $class_name();
         $layout_inst->process($ctx, $params, $tpl->vars);
     }
     return $tpl->process(BASE . 'layouts/' . $ctx->layout . '.tpl');
 }
Пример #3
0
<?php

include "../include/config.php";
STemplate::assign('url', $config['baseurl']);
//PROCESS LOGIN
if (isset($_POST['login'])) {
    if ($_POST['uname'] == "" or $_POST['pass'] == "") {
        $err = "Please Provide Username and Password.";
    } elseif ($_POST['uname'] != $config['admin_name'] and $_POST['pass'] != $config['admin_pass']) {
        $err = "Invalid Username and/or Password Provided";
    } elseif ($_POST['uname'] == $config['admin_name'] and $_POST['pass'] == $config['admin_pass']) {
        //REGISTER SESSION
        session_register("AUID");
        session_register("APASSWORD");
        $_SESSION['AUID'] = $config['admin_name'];
        $_SESSION['APASSWORD'] = $config['admin_pass'];
        $link = "main.php?active=Users";
        header("Location: {$link}");
    } else {
        $err = "Invalid Username/Password. Login failed.";
    }
}
STemplate::assign('msg', $msg);
STemplate::assign('err', $err);
STemplate::display('siteadmin/login.tpl');
Пример #4
0
<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    STemplate::display('board_popup.tpl');
}
Пример #5
0
if ($page == "") {
    $page = "1";
}
$currentpage = $page;
STemplate::assign('page', $page);
if ($page >= 2) {
    $pagingstart = ($page - 1) * $config['items_per_page'];
} else {
    $pagingstart = "0";
}
$query1 = "SELECT count(*) as total from posts A, members B where A.active='1' AND A.USERID=B.USERID AND A.phase>'1' order by A.htime desc limit {$config['maximum_results']}";
$query2 = "SELECT A.*, B.username from posts A, members B where A.active='1' AND A.USERID=B.USERID AND A.phase>'1' order by A.htime desc limit {$pagingstart}, {$config['items_per_page']}";
$executequery1 = $conn->Execute($query1);
$totalvideos = $executequery1->fields['total'];
if ($totalvideos > 0) {
    if ($executequery1->fields['total'] <= $config[maximum_results]) {
        $total = $executequery1->fields['total'];
    } else {
        $total = $config[maximum_results];
    }
    $toppage = ceil($total / $config[items_per_page]);
    if ($page <= $toppage) {
        $executequery2 = $conn->Execute($query2);
        $posts = $executequery2->getrows();
        $posts = getTags($posts);
        $posts = countComments($posts);
        $posts = getHash($posts);
        STemplate::assign('posts', $posts);
        STemplate::display('posts_bit_more.tpl');
    }
}
<?php

include "../include/config.php";
$active = $_GET[active];
if ($active == "Users") {
    include "leftmenu/userlinks.txt.php";
}
if ($active == "Videos") {
    include "leftmenu/videolinks.txt.php";
}
if ($active == "Audio") {
    include "leftmenu/audiolinks.txt.php";
}
if ($active == "Channels") {
    include "leftmenu/channellinks.txt.php";
}
if ($active == "Groups") {
    include "leftmenu/grouplinks.txt.php";
}
if ($active == "Settings") {
    include "leftmenu/settinglinks.txt.php";
}
STemplate::assign('MainLinks', $MainLinksArray);
STemplate::assign('ChildLinks', $ChildLinksArray);
STemplate::display('siteadmin/leftwebsite.tpl');
    } else {
        $link = "<br><br><br><center>There is no {$_REQUEST['a']} video available</center><br>";
    }
    //                $link = "You are in Page <b>$page</b> of <b>$spage</b>";
    if ($tpage > 1) {
        $nextpage = $page + 1;
        $prevpage = $page - 1;
        $prevlink = "<a href='videos.php?a={$_REQUEST['a']}&status={$status}&page={$prevpage}&sort={$sort}'><img src='../images/icon/previous.gif' title='Previous' alt='Previous' border='0' style='vertical-align: middle;'></a>";
        $nextlink = "<a href='videos.php?a={$_REQUEST['a']}&status={$status}&page={$nextpage}&sort={$sort}'><img src='../images/icon/next.gif' title='Next' alt='Next' border='0' style='vertical-align: middle;'></a>";
        if ($page == $tpage) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink}";
        } elseif ($tpage > $page && $page > 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink} &nbsp;&nbsp;{$nextlink}";
        } elseif ($tpage > $page && $page <= 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$nextlink}";
        }
    }
    $sql = "SELECT * from video {$query} limit {$startfrom}, {$listing_per_page}";
    $rs = $conn->Execute($sql);
    $total = $rs->recordcount() + 0;
    $videos = $rs->getrows();
    STemplate::assign('link', $link);
    STemplate::assign('grandtotal', $grandtotal + 0);
    STemplate::assign('total', $total + 0);
    STemplate::assign('page', $page + 0);
    STemplate::assign('videos', $videos);
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/channelvideos.tpl");
Пример #8
0
} else {
    $nosel = "selected";
}
$featured_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='no' {$nosel}>No</option>";
STemplate::assign('featured_box', $featured_box);
if ($video[0]['be_comment'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$comment_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('comment_box', $comment_box);
if ($video[0]['be_rated'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$rate_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('rate_box', $rate_box);
if ($video[0]['embed'] == "enabled") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$embed_box = "<option value='enabled' {$yessel}>Enable</option>\n                          <option value='' {$nosel}>Disable</option>";
STemplate::assign('embed_box', $embed_box);
Stemplate::assign('video', $video[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/audioedit.tpl");
Пример #9
0
/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$thebaseurl = $config['baseurl'];
$q = intval(cleanit($_REQUEST['params']['q']));
STemplate::assign('q', $q);
if ($q > 0) {
    $addme = "AND D.USERID ='" . mysql_real_escape_string($q) . "'";
    $offset = intval($_REQUEST['offset']);
    $query = "select A.PID, A.ptitle, A.pic, A.pkey, A.price, A.youtube, A.USERID, C.bname from posts A, boards C, posts_fav D WHERE A.active='1' AND A.BID=C.BID AND A.PID=D.PID {$addme} order by A.points desc, A.viewcount desc, A.PID desc limit {$offset}, 10";
    $results = $conn->execute($query);
    $pins = $results->getrows();
    STemplate::assign('pins', $pins);
    $pcount = count($pins);
    $html = STemplate::fetch('more_owner_likes.tpl');
    $arr = array('count' => $pcount, 'lastPage' => false, 'html' => $html);
    header("Content-Type: application/json");
    echo json_encode($arr);
}
Пример #10
0
<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$thebaseurl = $config['baseurl'];
$PID = intval(cleanit($_REQUEST['id']));
if ($PID > 0) {
    STemplate::assign('PID', $PID);
    STemplate::display('fbcoms.tpl');
}
Пример #11
0
include "../include/function.php";
if ($_REQUEST['submit']) {
    $sql = "update signup set\n                                email = '{$_REQUEST['email']}',\n                                fname = '{$_REQUEST['fname']}',\n                                lname = '{$_REQUEST['lname']}',\n                                city = '{$_REQUEST['city']}',\n                                country = '{$_REQUEST['country']}',\n                                website = '{$_REQUEST['website']}',\n                                occupation = '{$_REQUEST['occupation']}',\n                                company = '{$_REQUEST['company']}',\n                                school = '{$_REQUEST['school']}',\n                                interest_hobby = '{$_REQUEST['interest_hobby']}',\n                                fav_movie_show = '{$_REQUEST['fav_movie_show']}',\n                                fav_book = '{$_REQUEST['fav_book']}',\n                                fav_music = '{$_REQUEST['fav_music']}',\n                                aboutme = '{$_REQUEST['aboutme']}',\n                                emailverified = '{$_REQUEST['emailverified']}',\n                                account_status = '{$_REQUEST['account_status']}'\n                        where UID={$_REQUEST['uid']}";
    $conn->execute($sql);
    header("Location: useredit.php?action=edit&uid={$_REQUEST['uid']}&page={$_REQUEST['page']}&msg=User+information+updated+successfully");
}
$rs = $conn->execute("select * from signup where UID={$_REQUEST['uid']}");
$user = $rs->getrows();
STemplate::assign('country_box', country_box($user[0]['country']));
if ($user[0]['emailverified'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$email_ver_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='no' {$nosel}>No</option>";
STemplate::assign('email_ver_box', $email_ver_box);
if ($user[0]['account_status'] == "Active") {
    $activesel = "selected";
} else {
    $inactivesel = "selected";
}
$account_status_box = "<option value='Active' {$activesel}>Active</option>\n                          <option value='Inactive' {$inactivesel}>Inactive</option>";
STemplate::assign('account_status_box', $account_status_box);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('user', $user[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/useredit.tpl");
<?php

include "../include/config.php";
include "../include/function.php";
if ($_REQUEST['submit']) {
    $sql = "update sconfig set svalue='{$_REQUEST['selUserVote']}' where soption='video_rating'";
    $conn->execute($sql);
    $sql = "update sconfig set svalue='{$_REQUEST['selUser_poll']}' where soption='user_poll'";
    $conn->execute($sql);
}
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/miscellaneous.html");
Пример #13
0
$featured_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='no' {$nosel}>No</option>";
STemplate::assign('featured_box', $featured_box);
if ($video[0]['be_comment'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$comment_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('comment_box', $comment_box);
if ($video[0]['be_rated'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$rate_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('rate_box', $rate_box);
if ($video[0]['embed'] == "enabled") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$embed_box = "<option value='enabled' {$yessel}>Enable</option>\n                          <option value='' {$nosel}>Disable</option>";
STemplate::assign('embed_box', $embed_box);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('video', $video[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/videoedit.tpl");
Пример #14
0
        header("Location: packedit.php?action=add&msg=Package+added+successfully");
    }
}
if ($_REQUEST['pack_id'] != "") {
    $rs = $conn->execute("select * from package where pack_id={$_REQUEST['pack_id']}");
    $package = $rs->getrows();
    Stemplate::assign('package', $package[0]);
    if ($package[0]['period'] == "Day") {
        $daysel = "selected";
    } elseif ($package[0]['period'] == "Month") {
        $monthsel = "selected";
    } elseif ($package[0]['period'] == "Year") {
        $yearsel = "selected";
    }
    if ($package[0]['status'] == "Active") {
        $actsel = "selected";
    } elseif ($package[0]['status'] == "Inactive") {
        $inactsel = "selected";
    }
}
$period_ops = "<option value='Month' {$monthsel}>Month</option>\n                        <option value='Year' {$yearsel}>Year</option>";
STemplate::assign('period_ops', $period_ops);
$status_ops = "<option value='Active' {$actsel}>Active</option>\n                        <option value='Inactive' {$inactsel}>Inactive</option>";
STemplate::assign('status_ops', $status_ops);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/packedit.tpl");
Пример #15
0
STemplate::assign('posting_box', $posting_box);
if ($group[0]['gimage'] == "immediate") {
    $i1sel = "selected";
} elseif ($group[0]['gimage'] == "owner_only") {
    $i2sel = "selected";
}
$icon_box = "<option value='immediate' {$i1sel}>immediate</option>\n                          <option value='owner_only' {$i2sel}>owner_only</option>";
STemplate::assign('icon_box', $icon_box);
if ($group[0]['featured'] == "yes") {
    $activesel = "selected";
} else {
    $inactivesel = "selected";
}
$featured_box = "<option value='yes' {$activesel}>Yes</option>\n                          <option value='no' {$inactivesel}>No</option>";
STemplate::assign('featured_box', $featured_box);
$mych = explode("|", $group[0]['channel']);
$ch = insert_list_channel();
for ($i = 0; $ch[$i]['ch'] != ""; $i++) {
    if (in_array($ch[$i]['id'], $mych)) {
        $checked = "checked";
    } else {
        $checked = "";
    }
    $ch_checkbox .= "<input type=checkbox name=channel[] value=" . $ch[$i]['id'] . " {$checked}>" . $ch[$i]['ch'] . "</input><br>";
}
STemplate::assign('ch_checkbox', $ch_checkbox);
Stemplate::assign('group', $group[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/groupedit.tpl");
Пример #16
0
        $conn->execute($sql);
        header("Location: groupposts.php?gid={$gid}&TID={$TID}");
    }
}
if ($_POST['pupdate']) {
    if ($post == "") {
        $err = "Enter details for this comments";
    } else {
        $sql = "update group_tps_post set post='{$post}' where PID={$PID}";
        $conn->execute($sql);
        header("Location: groupposts.php?gid={$gid}&TID={$TID}");
    }
}
if ($_GET['action'] == "pdel" and $_GET['PID'] != "") {
    $sql = "delete from group_tps_post where PID={$PID}";
    $conn->execute($sql);
    header("Location: groupposts.php?gid={$gid}&TID={$TID}");
}
$sql = "select * from group_tps where TID={$TID}";
$rs = $conn->execute($sql);
$topic = $rs->getrows();
STemplate::assign('topic', $topic[0]);
$sql = "select * from group_tps_post where  TID='{$TID}' order by PID asc";
$rs1 = $conn->execute($sql);
$post = $rs1->getrows();
STemplate::assign('post', $post);
STemplate::assign('total_post', count($post));
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/groupposts.tpl");
<?php

include "../include/config.php";
include "../include/function.php";
if ($_REQUEST[action] == "delete") {
    $sql = "delete from poll_question  where poll_id='{$_REQUEST['poll_id']}'";
    $conn->execute($sql);
    $err = "Delete successfull";
}
$sql = "select * from poll_question";
$rs = $conn->execute($sql);
$pollArray = $rs->getarray();
Stemplate::assign('pollArray', $pollArray);
Stemplate::assign('err', $err);
STemplate::display("siteadmin/viewpolllist.tpl");
?>

Пример #18
0
    }
    if ($err == "") {
        # FORMATIN ANSWERS...
        $ansBank = "";
        for ($i = 0; $i < $_REQUEST[txtAnsQty]; $i++) {
            $xx = "voteAnsBox" . $i;
            ## TO ADD LESS THEN ONE PIPE
            if ($ansBank != "") {
                $ansBank .= "|";
            }
            $ansBank .= $_REQUEST[$xx];
        }
        # INSERTING NEW POL QUESTION
        $sql = " INSERT INTO poll_question set \n                                                                                poll_qty='{$_REQUEST['txtQtn']}',\n                                                                                poll_answer='{$ansBank}',\n                                                                                start_date='{$start_day}',\n                                                                                end_date='{$end_day}'";
        $rs = $conn->Execute($sql);
        if ($rs) {
            $err = "Submit successfull";
        }
    }
}
## COLLECT DATE AND MONTH FOR SELECT INPUT
$month = months();
$dayes = days();
$year = cc_year();
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
Stemplate::assign('dayes', $dayes);
Stemplate::assign('month', $month);
Stemplate::assign('year', $year);
STemplate::display("siteadmin/poll.tpl");
Пример #19
0
    }
    if ($tpage > 1) {
        $nextpage = $page + 1;
        $prevpage = $page - 1;
        $prevlink = "<a href='adv.php?a={$_REQUEST['a']}&status={$status}&page={$prevpage}&sort={$_REQUEST['sort']}'><img src='../images/icon/previous.gif' title='Previous' alt='Previous' border='0' style='vertical-align: middle;'></a>";
        $nextlink = "<a href='adv.php?a={$_REQUEST['a']}&status={$status}&page={$nextpage}&sort={$_REQUEST['sort']}'><img src='../images/icon/next.gif' title='Next' alt='Next' border='0' style='vertical-align: middle;'></a>";
        if ($page == $tpage) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink}";
        } elseif ($tpage > $page && $page > 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink} &nbsp;&nbsp;{$nextlink}";
        } elseif ($tpage > $page && $page <= 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$nextlink}";
        }
    }
    $sql = "SELECT * from adv {$query} limit {$startfrom}, {$listing_per_page}";
    $rs = $conn->Execute($sql);
    $total = $rs->recordcount() + 0;
    $adv = $rs->getrows();
    STemplate::assign('link', $link);
    STemplate::assign('grandtotal', $grandtotal + 0);
    STemplate::assign('total', $total + 0);
    STemplate::assign('page', $page + 0);
    STemplate::assign('adv', $adv);
}
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/adv.tpl");
Пример #20
0
 public static function getVars()
 {
     global $Smarty;
     if (!isset($Smarty)) {
         STemplate::create();
     }
     return $Smarty->get_template_vars();
 }
Пример #21
0
<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    $PID = intval(cleanit($_REQUEST['id']));
    if ($PID > 0) {
        STemplate::assign('PID', $PID);
        STemplate::display('delete_create_popup.tpl');
    }
} else {
    header("Location:" . $thebaseurl . "/login");
    exit;
}
Пример #22
0
        $prevpage = $page - 1;
        $prevlink = "<a href='packages.php?page={$prevpage}&sort={$sort}'><img src='../images/icon/previous.gif' title='Previous' alt='Previous' border='0' style='vertical-align: middle;'></a>";
        $nextlink = "<a href='packages.php?page={$nextpage}&sort={$sort}'><img src='../images/icon/next.gif' title='Next' alt='Next' border='0' style='vertical-align: middle;'></a>";
        if ($page == $tpage) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink}";
        } elseif ($tpage > $page && $page > 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink} &nbsp;&nbsp;{$nextlink}";
        } elseif ($tpage > $page && $page <= 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$nextlink}";
        }
    }
    $sql = "SELECT * from package {$query} limit {$startfrom}, {$listing_per_page}";
    $rs = $conn->Execute($sql);
    $total = $rs->recordcount() + 0;
    $packs = $rs->getrows();
    STemplate::assign('link', $link);
    STemplate::assign('grandtotal', $grandtotal + 0);
    STemplate::assign('total', $total + 0);
    STemplate::assign('page', $page + 0);
    STemplate::assign('packs', $packs);
} elseif ($_REQUEST['a'] == "Search") {
    if ($_REQUEST['pack_id'] != null) {
        $rs = $conn->execute("select * from package where pack_id={$_REQUEST['pack_id']}");
        $pack = $rs->getrows();
        STemplate::assign("pack", $pack[0]);
    }
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/packages.tpl");
Пример #23
0
<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    $BID = intval(cleanit($_REQUEST['id']));
    if ($BID > 0) {
        STemplate::assign('BID', $BID);
        STemplate::display('delete_board_popup.tpl');
    }
} else {
    header("Location:" . $thebaseurl . "/login");
    exit;
}
Пример #24
0
    }
    if ($err == "") {
        header("location: settings.php?msg=System settings updated successfully");
    }
}
if ($config['enable_package'] == 'yes') {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$ops = "<option value='yes' {$yessel}>Enable Package</option>\n                <option value='no' {$nosel}>Free Service</option>";
STemplate::assign("service_ops", $ops);
if ($config['payment_method'] != "") {
    $method = explode("|", $config['payment_method']);
    while (list($k, $v) = each($method)) {
        if ($v == "Paypal") {
            $pay_checked = "Checked";
        } elseif ($v == "Authorize.net") {
            $aut_checked = "Checked";
        }
    }
}
$payment_method_ops = "<input type=checkbox name='method[]' value='Paypal' {$pay_checked}> Paypal<br>\n                                <input type=checkbox name='method[]' value='Authorize.net' {$aut_checked}> Authorize.net";
STemplate::assign('payment_method_ops', $payment_method_ops);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/settings.tpl");
Пример #25
0
<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
STemplate::display('log_out.tpl');
Пример #26
0
<?php

/**************************************************************************************************
| PinMe Script
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$thebaseurl = $config['baseurl'];
$offset = intval($_REQUEST['offset']);
$query = "select A.PID, A.ptitle, A.pic, A.pkey, A.price, A.youtube, B.USERID, B.username, B.fname, B.lname, B.profilepicture, C.bname from posts A, members B, boards C WHERE A.active='1' AND A.USERID=B.USERID AND A.BID=C.BID AND A.youtube!='' order by A.points desc, A.viewcount desc, A.PID desc limit {$offset}, 10";
$results = $conn->execute($query);
$pins = $results->getrows();
STemplate::assign('pins', $pins);
$pcount = count($pins);
$html = STemplate::fetch('more.tpl');
$arr = array('count' => $pcount, 'lastPage' => false, 'html' => $html);
header("Content-Type: application/json");
echo json_encode($arr);
Пример #27
0
<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
include "../include/config.php";
include_once "../include/functions/import.php";
verify_login_admin();
$AID = intval($_REQUEST[AID]);
if ($AID > 0) {
    $query = $conn->execute("select code, nsfwcode from advertisements where AID='" . mysql_real_escape_string($AID) . "' limit 1");
    $ad = $query->getrows();
    Stemplate::assign('ad', $ad[0]);
}
$mainmenu = "11";
$submenu = "1";
Stemplate::assign('mainmenu', $mainmenu);
Stemplate::assign('submenu', $submenu);
STemplate::display("administrator/global_header.tpl");
STemplate::display("administrator/ads_preview.tpl");
STemplate::display("administrator/global_footer.tpl");
Пример #28
0
<?php

include "../include/config.php";
include "leftmenu/headlinks.txt.php";
STemplate::assign('HeadLinks', $HeadLinksArray);
STemplate::display('siteadmin/framehead.tpl');
Пример #29
0
        $query = "select count(*) as total from boards WHERE USERID='" . mysql_real_escape_string($USERID) . "'";
        $executequery = $conn->execute($query);
        $btotal = intval($executequery->fields['total']);
        STemplate::assign('btotal', $btotal);
        $query = "select count(*) as total from posts_fav WHERE USERID='" . mysql_real_escape_string($USERID) . "'";
        $executequery = $conn->execute($query);
        $ltotal = intval($executequery->fields['total']);
        STemplate::assign('ltotal', $ltotal);
        $query7 = "select count(*) as total from followm WHERE ISFOL='" . mysql_real_escape_string($USERID) . "'";
        $executequery7 = $conn->execute($query7);
        $fola = intval($executequery7->fields['total']);
        STemplate::assign('fola', $fola);
        $query7 = "select count(*) as total from followm WHERE USERID='" . mysql_real_escape_string($USERID) . "'";
        $executequery7 = $conn->execute($query7);
        $folb = intval($executequery7->fields['total']);
        STemplate::assign('folb', $folb);
        $query = "select * from activity WHERE USERID='" . mysql_real_escape_string($USERID) . "' order by AID desc limit 10";
        $results = $conn->execute($query);
        $act = $results->getrows();
        STemplate::assign('act', $act);
        $theme = "profile.tpl";
    } else {
        $theme = "404.tpl";
    }
}
//TEMPLATES BEGIN
STemplate::assign('pins', $pins);
STemplate::display('header.tpl');
STemplate::display($theme);
STemplate::display('footer.tpl');
//TEMPLATES END
Пример #30
0
<?php

/**************************************************************************************************
| PinMe Script
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
STemplate::display('language.tpl');