vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PHP Code, How can i give promosions to see only admins? (https://vborg.vbsupport.ru/showthread.php?t=126253)

aycan555 09-10-2006 03:21 PM

PHP Code, How can i give promosions to see only admins?
 
Hi i want to protect this code which only admins can see:

PHP Code:

print_table_start();
 
print_table_header("Latest 10 PM",3);

echo 
"<tr valign=\"top\">

<td class=\"thead\">From</td>
<td class=\"thead\">To</td>
<td class=\"thead\" >Title</td>
</tr>"
;

    
$resultpm $db->query_read("SELECT * FROM " TABLE_PREFIX "pmtext ORDER BY dateline DESC LIMIT 0, 10");

require_once(
DIR '/includes/class_bbcode.php');
    
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());

$aaa 1;
while (
$pmxread $db->fetch_array($resultpm))
{

$yazi $bbcode_parser->parse($pmxread['message'], 0true);

$users unserialize($pmxread['touserarray']);
$kim unserialize($pmxread['touserarray']);


echo 
"<tr><td class=\"alt$aaa\">".$pmxread['fromusername']."</td><td class=\"alt$aaa\">".$pmxread['touserarray']."</td><td class=\"alt$aaa\"><b>".$pmxread['fromusername']."</b><br />$yazi</td></tr>";
$aaa++;
if (
$aaa>2)
{
$aaa 1;
}
}

print_table_footer(2''''0); 

This is latest 10 PM hack but i do not want to Super Moderators view this?

How can i protect it..


All times are GMT. The time now is 05:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00989 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete