|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 45
Members: 0
Total: 45
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Please help decode((( |
|
Posted: Tue Sep 18, 2012 1:01 pm |
|
|
sarik1986 |
Regular user |
|
|
Joined: Jul 02, 2012 |
Posts: 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Tue Sep 18, 2012 2:26 pm |
|
|
demon |
Moderator |
|
|
Joined: Sep 22, 2010 |
Posts: 485 |
|
|
|
|
|
|
|
here you are and see your pm
Code: | <?php
function main()
{
$page_record = mysql_real_escape_string($_REQUEST['page_record']);
$total_records = mysql_real_escape_string($_REQUEST['total_records']);
$pageno = mysql_real_escape_string($_REQUEST['pageno']);
$rs0 = mysql_fetch_array(mysql_query("select * from zw_websetting"));
$pagelimits = $rs0['rec_per_page'];
$lim = $rs0['num_page_numbers'];
$start = mysql_real_escape_string($_REQUEST['start']);
$end = mysql_real_escape_string($_REQUEST['end']);
if (!$start) {
$start = 1;
}
if (!$end) {
$end = $lim;
}
$records_per_page = $pagelimits;
if (isset($_REQUEST['cur_page'])) {
$page_num = $_REQUEST['cur_page'] + 1;
} else {
$page_num = $cur_page + 1;
}
$cur_page = $_REQUEST['cur_page'];
$str = mysql_query("select * from community_category order by community_name asc");
$str_num = mysql_num_rows($str);
$query_data = mysql_fetch_array($str);
$total_num_page = ceil(mysql_num_rows($str) / $records_per_page);
if ($total_num_page < $lim) {
$lim = $total_num_page;
}
if ($total_num_page < $end) {
$end = $total_num_page;
}
if (empty($cur_page)) {
$cur_page = 0;
}
$limit_str = "LIMIT " . $cur_page * $records_per_page . ",{$records_per_page}";
$comm_detail = mysql_query("select * from community_category order by community_name asc {$limit_str}");
$num_rows = mysql_num_rows($comm_detail);
echo "<div class=\"mainheading\">Communities » Categories</div><br />\r\n \r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr>\r\n <td width=\"100%\" align=\"left\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"inset\">\r\n\r\n <tr>\r\n<tr>\r\n <td colspan=\"6\" style=\"padding-left:10px;\"> ;;</td>\r\n </tr>\r\n <td><table width=\"100%\"";
echo " border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tblBorder\">\r\n \r\n <form method=\"post\" name=\"resumeform\" id=\"resumeform\">\r\n <tr>\r\n\t\t\t\r\n\t\t\t";
if ($num_rows != "0") {
$i = 0;
do {
if ($fetch_comm = mysql_fetch_array($comm_detail)) {
$comm_num = mysql_num_rows(mysql_query("select * from communities where community_cat='{$fetch_comm['community_cat_id']}'"));
++$i;
echo " <td width=\"5%\" align=\"right\" valign=\"middle\" class=\"mediumtxt\" style=\"padding:5px 5px 5px 5px;\" >\r\n\t\t\t <img src=\"images/black-bullet.gif\" />\t\t\t </td>\r\n\t\t\t <td width=\"28%\" align=\"left\" valign=\"middle\" class=\"mediumtxt alink\" style=\"padding-left:5px;\" >\r\n\t\t\t ";
echo "<a href='community-" . $fetch_comm[community_cat_id] . "-" . urlconvert($fetch_comm[community_name]) . ".html' title='{$fetch_comm['community_name']}'><span style='text-transform:capitalize'>{$fetch_comm['community_name']}</span></a>";
echo "</td>\r\n";
if ($i == 3) {
echo "</tr><tr>";
$i = 0;
}
}
} while (1);
}
echo "<tr><td colspan='6' align='center'>No Communities Added </td></tr>";
echo "\t\t\t \r\n </tr>\r\n \r\n <tr>\r\n <td height=\"29\" colspan=\"2\" align=\"center\" valign=\"middle\" class=\"innertxt\"> ;;</td>\r\n </tr>\r\n <tr>\r\n <td height=\"29\" colspan=\"6\" align=\"center\" valign=\"middle\" class=\"innertxt\">\r\n\t\t\t ";
if ($pagelimits < $str_num) {
if (1 < $page_num) {
$st = $start - 1;
$ed = $end - 1;
if ($st == 0) {
$st = 1;
$ed = $st + ($lim - 1);
}
$prev_page = $cur_page - 1;
echo "<span class='alink'><a href='{$_SERVER['PHP_SELF']}?cur_page={$prev_page}&&userid={$userid}&start={$st}&end={$ed}'>Prev</a></span>";
echo " ;; ;;";
}
$i = $start;
while ($i <= $end) {
if ($i == $cur_page + 1) {
echo $i . " ;; ;;";
} else {
$j = $i - 1;
echo "<span class='alink'><a href='{$_SERVER['PHP_SELF']}?cur_page={$j}&start={$start}&end={$end}&&userid={$userid}'>{$i}</a></span>";
echo " ;; ;;";
}
++$i;
}
if ($page_num < $total_num_page) {
$star = $start + 1;
$end1 = $star + $lim - 1;
if ($total_num_page < $end1) {
$end1 = $total_num_page;
$star = $total_num_page - ($lim - 1);
}
$next_page = $cur_page + 1;
$last_page = $total_num_page - 1;
echo "<span class='alink'>\r\n<a href='{$_SERVER['PHP_SELF']}?cur_page={$next_page}&&page_record=next&&total_records={$num}&&userid={$userid}&&start={$star}&end={$end1}'>Next</a></span>";
echo " ;; ;;";
}
}
echo "</td>\r\n </tr>\r\n </form>\r\n </table></td>\r\n </tr>\r\n\r\n </table></td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" valign=\"middle\"> ;;</td>\r\n </tr>\r\n</table>\r\n";
}
session_start();
include("conn.php");
include_once("template2.php");
?>
|
|
|
_________________ Go BIG or go HOME ! |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|