} $uppercounter = $currentpage + 1; while ($uppercounter < $currentpage + 10 - $counter && $uppercounter <= $toppage) { $uppercounter++; } if ($currentpage < $toppage) { STemplate::assign('tnp', $thenextpage); } } } $eurl = base64_encode("/?page=" . $page); STemplate::assign('eurl', $eurl); } $posts = getTags($posts); $posts = countComments($posts); $posts = getHash($posts); //TEMPLATES BEGIN STemplate::assign('showkeya', 1); STemplate::assign('hotkeys', 1); STemplate::assign('showkeys', 1); STemplate::assign('homepage', 1); STemplate::assign('menu', 1); STemplate::assign('posts', $posts); STemplate::assign('popHashes', $popHashes); STemplate::display('header.tpl'); STemplate::display($templateselect); STemplate::display('footer.tpl'); //TEMPLATES END $executequery1->Close(); $executequery2->Close(); $conn->Close();
$executequery = $conn->execute($query); $r = $executequery->getarray(); STemplate::assign('r', $r); if ($category > 0) { $query = "SELECT seo,name FROM categories WHERE CATID='" . mysql_real_escape_string($category) . "' limit 1"; $executequery = $conn->execute($query); $cat_name = $executequery->fields['name']; $cat_seo = $executequery->fields['seo']; STemplate::assign('cat_seo', $cat_seo); STemplate::assign('cat_name', $cat_name); } } else { $error = $lang['140']; } } else { $error = $lang['139']; } } if ($error == "") { $theme = "view.tpl"; } else { $theme = "empty.tpl"; } //TEMPLATES BEGIN STemplate::assign('viewpage', 1); STemplate::assign('error', $error); STemplate::assign('message', $message); STemplate::display('header.tpl'); STemplate::display($theme); STemplate::display('footer.tpl'); //TEMPLATES END
<?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']; $templateselect = "rules.tpl"; $pagetitle = $lang['304']; STemplate::assign('pagetitle', $pagetitle); $lng = $_SESSION['language'] == 'en' ? '' : '_jp'; STemplate::assign('lng', $lng); //TEMPLATES BEGIN STemplate::assign('small_scriptolution', "1"); STemplate::assign('error', $error); STemplate::display('header.tpl'); STemplate::display($templateselect); STemplate::display('footer.tpl'); //TEMPLATES END
} $uppercounter = $currentpage + 1; while ($uppercounter < $currentpage + 10 - $counter && $uppercounter <= $toppage) { $uppercounter++; } if ($currentpage < $toppage) { STemplate::assign('tnp', $thenextpage); } } } $eurl = base64_encode("/new?page=" . $page); STemplate::assign('eurl', $eurl); } //$posts = getTags($posts); //$posts = countComments($posts); //$posts = getHash($posts); $posts = getHashCountGetComments($posts); STemplate::assign('posts', $posts); //TEMPLATES BEGIN STemplate::assign('showkeya', 1); STemplate::assign('hotkeys', 1); STemplate::assign('showkeys', 1); STemplate::assign('pagetitle', $lang['274']); STemplate::assign('menu', 3); STemplate::display('header.tpl'); STemplate::display($templateselect); STemplate::display('footer.tpl'); //TEMPLATES END //$executequery1->Close(); //$executequery2->Close(); //$conn->Close();
$sendername = $config['site_name']; $from = $config['site_email']; $subject = $lang['203'] . " " . $sendername; $sendmailbody = stripslashes($email3) . ",<br><br>"; $sendmailbody .= $lang['203'] . " " . $sendername . "<br>"; $sendmailbody .= $lang['205'] . "<br>"; $sendmailbody .= "<a href=" . $config['baseurl'] . ">" . $config['baseurl'] . "</a><br><br>"; $sendmailbody .= $lang['206'] . ",<br>" . stripslashes($sendername); mailme($sendto, $sendername, $from, $subject, $sendmailbody, $bcc = ""); } if ($email4 != "") { $sendto = $email4; $sendername = $config['site_name']; $from = $config['site_email']; $subject = $lang['203'] . " " . $sendername; $sendmailbody = stripslashes($email4) . ",<br><br>"; $sendmailbody .= $lang['203'] . " " . $sendername . "<br>"; $sendmailbody .= $lang['205'] . "<br>"; $sendmailbody .= "<a href=" . $config['baseurl'] . ">" . $config['baseurl'] . "</a><br><br>"; $sendmailbody .= $lang['206'] . ",<br>" . stripslashes($sendername); mailme($sendto, $sendername, $from, $subject, $sendmailbody, $bcc = ""); } $msg = $lang['202']; } } STemplate::assign('pagetitle', $lang['156']); STemplate::assign('error', $error); STemplate::assign('msg', $msg); STemplate::display('header4.tpl'); STemplate::display('invite_friends.tpl'); STemplate::display('footer.tpl');
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'); } }
$rs = $conn->execute($sql); if ($rs->recordcount() > 0) { $vdo = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); } $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='uvideos.php?UID={$_REQUEST['UID']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('answers', $vdo); if ($my_friends != "") { $kwords = group_tags($sql); } STemplate::assign('vtags', $kwords); STemplate::assign('head_bottom', "friendlinks.tpl"); //STemplate::assign('head_bottom_add',"viewuserlinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('search.tpl'); STemplate::display('fvideos.tpl'); STemplate::display('footer.tpl');
$sql = "select * from video as v, playlist as f WHERE f.UID={$_GET['UID']} and f.VID=v.VID limit {$startfrom}, {$config['items_per_page']}"; } else { $sql = "select * from video as v, playlist as f WHERE f.UID={$_SESSION['UID']} and f.VID=v.VID limit {$startfrom}, {$config['items_per_page']}"; } $rs = $conn->execute($sql); if ($rs->recordcount() > 0) { $vdo = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='my_playlist.php?UID={$_GET['UID']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('answers', $vdo); $mytags = group_tags($sql); STemplate::assign('mytags', $mytags); STemplate::assign('head_bottom', "blank.tpl"); STemplate::assign('head_bottom_add', "viewuserlinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('uplaylist.tpl'); STemplate::display('footer.tpl');
$yessel = "selected"; } 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");
<?php include "../include/config.php"; include "leftmenu/headlinks.txt.php"; STemplate::assign('HeadLinks', $HeadLinksArray); STemplate::display('siteadmin/framehead.tpl');
$sql = "update group_tps set title='{$title}', approved='{$approved}' where TID={$TID}"; $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");
$conn->execute($sql); } 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");
$nextpage = $page + 1; $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 .= " | {$prevlink}"; } elseif ($tpage > $page && $page > 1) { $link .= " | {$prevlink} {$nextlink}"; } elseif ($tpage > $page && $page <= 1) { $link .= " | {$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");
$spage = $tpage; } $startfrom = ($page - 1) * $config[items_per_page]; $sql = "select * from audio WHERE UID={$_REQUEST['UID']} and type='{$_REQUEST['type']}' limit {$startfrom}, {$config['items_per_page']}"; $rs = $conn->execute($sql); if ($rs->recordcount() > 0) { $vdo = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='uaudios.php?UID={$_REQUEST['UID']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING } STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('answers', $vdo); $kwords = group_tags($sql); STemplate::assign('vtags', $kwords); STemplate::assign('head_bottom_add', "musiclinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('uaudios.tpl'); STemplate::display('footer.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');
$link = "<br><br><br><center>There is no advertise available</center><br>"; } 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 .= " | {$prevlink}"; } elseif ($tpage > $page && $page > 1) { $link .= " | {$prevlink} {$nextlink}"; } elseif ($tpage > $page && $page <= 1) { $link .= " | {$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");
<?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; }
} else { $spage = $tpage; } $startfrom = ($page - 1) * $config[items_per_page]; $sql = "select * from video as v, favourite as f WHERE f.UID={$_SESSION['UID']} and f.VID=v.VID limit {$startfrom}, {$config['items_per_page']}"; $rs = $conn->execute($sql); if ($rs->recordcount() > 0) { $vdo = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='ufavour.php?UID={$_SESSION['UID']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('answers', $vdo); $mytags = group_tags($sql); STemplate::assign('mytags', $mytags); STemplate::assign('head_bottom', "homelinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('my_favour.tpl'); STemplate::display('footer.tpl');
$lowercount = 1; } while ($lowercount < $currentpage) { $lowercount++; $counter++; } $uppercounter = $currentpage + 1; while ($uppercounter < $currentpage + 10 - $counter && $uppercounter <= $toppage) { $uppercounter++; } if ($currentpage < $toppage) { STemplate::assign('tnp', $thenextpage); } } } $eurl = base64_encode("/category/" . $seo . "/" . $page); STemplate::assign('eurl', $eurl); } } } STemplate::assign('posts', $posts); //TEMPLATES BEGIN STemplate::assign('showkeya', 1); STemplate::assign('hotkeys', 1); STemplate::assign('showkeys', 1); STemplate::assign('pagetitle', stripslashes($cname)); STemplate::assign('menu', 1); STemplate::display('header.tpl'); STemplate::display($templateselect); STemplate::display('footer.tpl'); //TEMPLATES END
$rs = $conn->Execute($sql); if ($rs->recordcount() > 0) { $users = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='search_result.php?page={$k}&search_type={$_REQUEST['search_type']}&search_id={$_REQUEST['search_id']}&search_key={$_REQUEST['search_key']}&sort={$_REQUEST['sort']}'>{$k}</a> "; } //END PAGING $tags = group_tags($sql); STemplate::assign('tags', $tags); } STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('ch', $ch); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('answers', $users); STemplate::assign('head_bottom', "homelinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('search.tpl'); $t2 = time(); STemplate::assign('ttime', $t2 - $t1); STemplate::display('search_result.tpl'); STemplate::display('footer.tpl');
} $pagelinks .= $currentpage . " "; $uppercounter = $currentpage + 1; while ($uppercounter < $currentpage + 10 - $counter && $uppercounter <= $toppage) { $pagelinks .= "<a href='{$adminurl}/bans_ip.php?page={$uppercounter}{$add1}'>{$uppercounter}</a> "; $uppercounter++; } if ($currentpage < $toppage) { $pagelinks .= "<a href='{$adminurl}/bans_ip.php?page={$thenextpage}{$add1}'>Next</a> "; $pagelinks .= "<a href='{$adminurl}/bans_ip.php?page={$toppage}{$add1}' title='last page'>Last</a> "; } } } else { $error = "Sorry, no IPs were found."; } $mainmenu = "5"; $submenu = "1"; Stemplate::assign('mainmenu', $mainmenu); Stemplate::assign('submenu', $submenu); Stemplate::assign('sorthow', $sorthow); Stemplate::assign('sortby', $sortby); Stemplate::assign('currentpage', $currentpage); STemplate::display("administrator/global_header.tpl"); STemplate::assign('beginning', $beginning); STemplate::assign('ending', $ending); STemplate::assign('pagelinks', $pagelinks); STemplate::assign('total', $total + 0); STemplate::assign('results', $results); Stemplate::assign('error', $error); STemplate::display("administrator/bans_ip.tpl"); STemplate::display("administrator/global_footer.tpl");
$sendmailbody .= "<a href=".$config['baseurl']."/confirmemail?c=$verifycode>".$config['baseurl']."/confirmemail?c=$verifycode</a><br><br>"; $sendmailbody .= $lang['87'].",<br>".stripslashes($sendername); mailme($sendto,$sendername,$from,$subject,$sendmailbody,$bcc=""); } // Send Welcome E-Mail End $_SESSION['status'] == ""; } if($redirect == "") { //header("Location:$config[baseurl]/settings");exit; } else { //header("Location:$redirect");exit; } } */ } } $pagetitle = $lang['276']; STemplate::assign('pagetitle', $pagetitle); STemplate::assign('error', $error); STemplate::assign('message', $message); STemplate::assign('small_scriptolution', "1"); //TEMPLATES BEGIN STemplate::display('header.tpl'); STemplate::display('signup.tpl'); STemplate::display('footer.tpl'); //TEMPLATES END
include "include/config.php"; include "include/function.php"; $sql = "select * from package where pack_id={$_GET['pack']}"; $rs = $conn->execute($sql); $package = $rs->getrows(); STemplate::assign('package', $package[0]); $period_ops = ""; if ($package[0]['period'] == "Year") { for ($i = 1; $i <= 5; $i++) { $period_ops .= "<option value='{$i}'>{$i}</option>"; } } elseif ($package[0]['period'] == "Month") { for ($i = 1; $i <= 12; $i++) { $period_ops .= "<option value='{$i}'>{$i}</option>"; } } STemplate::assign('period_ops', $period_ops); if ($config['payment_method'] != "") { $method = explode("|", $config['payment_method']); $payment_method_ops = ""; while (list($k, $v) = each($method)) { $payment_method_ops .= "<option value='{$v}'>{$v}</option>"; } STemplate::assign('payment_method_ops', $payment_method_ops); } STemplate::assign('err', $err); STemplate::assign('head_bottom', "blank.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('pack_ops.tpl'); STemplate::display('footer.tpl');
$link = "Page {$page_no} of <b>{$spage}</b> Pages"; } 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 .= " | {$prevlink}"; } elseif ($tpage > $page && $page > 1) { $link .= " | {$prevlink} {$nextlink}"; } elseif ($tpage > $page && $page <= 1) { $link .= " | {$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");
$spage = $tpage; } $startfrom = ($page - 1) * $config[items_per_page]; $sql = "select * from group_mem WHERE GID={$_REQUEST['gid']} limit {$startfrom}, {$config['items_per_page']}"; $rs = $conn->execute($sql); if ($rs->recordcount() > 0) { $vdo = $rs->getrows(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='gmembers.php?gid={$_REQUEST['gid']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING STemplate::assign('err', $err); STemplate::assign('msg', $msg); STemplate::assign('page', $page); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('friends', $vdo); STemplate::assign('head_bottom', "grouplinks.tpl"); if ($_SESSION['UID'] != "") { STemplate::assign('head_bottom_add', "crglinks.tpl"); } STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('gmembers.tpl'); STemplate::display('footer.tpl');
\t<div class="num"><span>{$total_rows}</span>photos</div> </div> \t\t\t\t<div class="clear"></div> \t\t\t\t<div class="post-content"> DEM; foreach ($dat as $da) { $ctr++; $content .= '<a href="' . $config['baseurl'] . '/post/' . $da['pid'] . '" style="background-image: url(' . $config['imagesurl'] . '/pdata/t/s-' . $da['pid'] . '.jpg);"></a>'; if ($ctr == 4) { break; } } $content .= '<div class="clear"></div> </div> </div>'; file_put_contents($ttf, $content); } return true; } $templateselect = 'index_tag.tpl'; $pagetitle = $lang['366']; STemplate::assign('pagetitle', $pagetitle); STemplate::assign('menu', "8"); //TEMPLATES BEGIN STemplate::assign('posts', $posts); STemplate::assign('tpp', $prev_page); STemplate::assign('tnp', $next_page); STemplate::display('header.tpl'); STemplate::display($templateselect); STemplate::display('footer.tpl'); //TEMPLATES END
$body[] = $rs->fields['body']; $sender[] = $rs->fields['sender']; $date[] = $rs->fields['date']; $seen[] = $rs->fields['seen']; $subject[] = fx_replace('$sender_name', $rs->fields['subject'], $rs->fields['sender']); } $rs->movenext(); } $start_num = $startfrom + 1; $end_num = $startfrom + $rs->recordcount(); $page_link = ""; for ($k = 1; $k <= $tpage; $k++) { $page_link .= "<a href='inbox.php?UID={$_SESSION['UID']}&page={$k}&type={$_REQUEST['type']}'>{$k}</a> "; } //END PAGING STemplate::assign('pm_id', $pm_id); STemplate::assign('subject', $subject); STemplate::assign('body', $body); STemplate::assign('sender', $sender); STemplate::assign('date', $date); STemplate::assign('seen', $seen); STemplate::assign('start_num', $start_num); STemplate::assign('end_num', $end_num); STemplate::assign('page_link', $page_link); STemplate::assign('total', $total); STemplate::assign('err', $err); STemplate::assign('head_bottom', "msglinks.tpl"); STemplate::display('head1.tpl'); STemplate::display('err_msg.tpl'); STemplate::display('inbox.tpl'); STemplate::display('footer.tpl');
<?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; }
$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
include "../include/config.php"; 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");