Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 5th July 2009, 15:09
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default Admin PMs
Here is a New admin tool allowing you to view search and find all PMS from users.
Please let me know If you find any bugs
PHP Code:
<?
error_reporting
(E_ALL & ~E_NOTICE); 
include(
"header.php");
if(!
$user->admin)loginrequired("admin");
define('THIS_SCRIPT''admin_pms');
define('HACK_TITLE''Dream\'s Read PMs');  
define('MIN_SEARCH_WORD_LENGTH''4');
function 
fetch_row_bgclass()
{
// returns the current alternating class for <TR> rows in the CP.
    
global $bgcounter;
    return (
$bgcounter++ % 2) == 'alt1' 'alt2';
}
function 
htmlspecialchars_uni($text$entities true)
{
    return 
str_replace(
        
// replace special html characters
        
array('<''>''"'),
        array(
'&lt;''&gt;''&quot;'),
        
preg_replace(
            
// translates all non-unicode entities
            
'/&(?!' . ($entities '#[0-9]+|shy' '(#[0-9]+|[a-z]+)') . ';)/si',
            
'&amp;',
            
$text
        
)
    );
}
function 
print_table_start($echobr true$width '90%'$cellspacing 0$id ''$border_collapse false)
{
    global 
$tableadded;

    
$tableadded 1;

    if (
$echobr)
    {
        echo 
'<br />';
    }

    
$id_html = ($id == '' '' " id=\"$id\"");

    echo 
"\n<table cellpadding=\"4\" cellspacing=\"$cellspacing\" border=\"0\" align=\"center\" width=\"$width\" style=\"border-collapse:" . ($border_collapse 'collapse' 'separate') . "\" class=\"tborder\"$id_html>\n";
}
function 
print_form_header($phpscript ''$do ''$uploadform false$addtable true$name 'cpform'$width '90%'$target ''$echobr true$method 'post'$cellspacing 0$border_collapse false)
{
    global 
$vbulletin$tableadded;

    if ((
$quote_pos strpos($name'"')) !== false)
    {
        
$clean_name substr($name0$quote_pos);
    }
    else
    {
        
$clean_name $name;
    }

    echo 
"<form action=\"$phpscript.php?do=$do\"" iif($uploadform' enctype="multipart/form-data"') . " method=\"$method\"" iif($target" target=\"$target\"") . " name=\"$clean_name\" id=\"$name\">\n";

    
//construct_hidden_code('do', $do);
    
echo "<input type=\"hidden\" name=\"do\" value=\"" htmlspecialchars_uni($do) . "\" />\n";

    if (
$addtable)
    {
        
print_table_start($echobr$width$cellspacing$clean_name '_table'$border_collapse);
    }
    else
    {
        
$tableadded 0;
    }
}
// grab the counts of all users that have PMs
function rpm_get_pm_users($totalpms)
{
    global 
$db$db_prefix;
    
$res ="SELECT COUNT(`pm`.`recipient`) AS total, `pm`.`sender`, `pm`.`recipient`, `user`.`username`, `user`.`id` AS `userid` FROM `torrent_private_messages` AS `pm` INNER JOIN `torrent_users` AS `user` ON (`pm`.`recipient` = `user`.`id`) WHERE `pm`.`recipient` = `user`.`id` GROUP BY  `pm`.`recipient` HAVING total = " $totalpms " ORDER BY  `pm`.`recipient` DESC ";
    
$pms=$db->sql_query($res) or btsqlerror($res);
    return 
$pms;
}
function 
rpm_print_footer()
{
}
function 
rpm_get_all_pm_users()
{
    global 
$db$db_prefix;
    
$totals $db->sql_query("
        SELECT COUNT(*) AS total
        FROM `" 
$db_prefix "_private_messages`
        GROUP BY `recipient`
        ORDER BY total DESC
    "
);
    return 
$totals;
}
function 
rpm_get_pm($pmtextid)
{
    global 
$db$db_prefix;
    
$get_pm $db->sql_fetchrow($db->sql_query("
        SELECT *
        FROM `" 
$db_prefix "_private_messages`
        WHERE `id` = " 
$pmtextid "
    "
));
    return 
$get_pm;
}
function 
print_description_row($text$htmlise false$colspan 2$class ''$align ''$helpname NULL)
{
    global 
$stylevar;

    if (!
$class)
    {
        
$class fetch_row_bgclass();
    }


    echo 
"<tr valign=\"top\">
    <td class=\"
$class\"" iif($colspan != 1," colspan=\"$colspan\"") . iif($align" align=\"$align\"") . ">" iif($htmlisehtmlspecialchars_uni($text), $text) . "</td>\n</tr>\n";
}
function 
iif($expression$returntrue$returnfalse '')
{
    return (
$expression $returntrue $returnfalse);
}
function 
print_table_header($title$colspan 2$htmlise false$anchor ''$align 'center'$helplink true)
{
    global 
$bgcounter$stylevar;

    if (
$htmlise)
    {
        
$title htmlspecialchars_uni($title);
    }
    
$title "<b>$title</b>";
    if (
$anchor != '')
    {
        
$title "<a name=\"$anchor\">$title</a>";
    }

    echo 
"<tr>\n\t<td class=\"tcat\" align=\"$align\"" iif($colspan != 1" colspan=\"$colspan\"") . ">$title</td>\n</tr>\n";

    
$bgcounter 0;
}
function 
rpm_user_exists($userid)
{
    global 
$db;
    
$exists $db->sql_fetchrow($db->sql_query("
        SELECT `id`
        FROM `torrent_users`
        WHERE `id` = " 
$userid "
    "
));
    if (
$exists)
    {
        return 
true;
    }
    else
    {
        return 
false;
    }
}
function 
print_table_footer($colspan 2$rowhtml ''$tooltip ''$echoform true)
{
    global 
$tableadded$vbulletin;

    if (
$rowhtml)
    {
        
$tooltip iif($tooltip != ''" title=\"$tooltip\""'');
        if (
$tableadded)
        {
            echo 
"<tr>\n\t<td class=\"tfoot\"" iif($colspan != ," colspan=\"$colspan\"") . " align=\"center\"$tooltip>$rowhtml</td>\n</tr>\n";
        }
        else
        {
            echo 
"<p align=\"center\"$tooltip>$extra</p>\n";
        }
    }

    if (
$tableadded)
    {
        echo 
"</table>\n";
    }

    if (
$echoform)
    {

        echo 
"</form>\n\n\n";
    }
}
function 
rpm_username_exists($username)
{
    global 
$db$db_prefix;
    
$exists $db->sql_fetchrow($db->sql_query("
        SELECT `id`
        FROM `" 
$db_prefix "_users`
        WHERE LOWER(`username`) = LOWER('" 
$username "')
    "
));
    if (
$exists)
    {
        return 
$exists['id'];
    }
    else
    {
        return 
false;
    }
}
function 
rpm_get_name($userid)
{
    global 
$db$db_prefix;
    
$result $db->sql_fetchrow($db->sql_query("
        SELECT `username`
        FROM `" 
$db_prefix "_users`
        WHERE `id` = " 
$userid "
    "
));
    return 
$result['username'];
}
// search for PMs that match key search terms
function rpm_search_pms($search_for$match)
{
    global 
$db$db_prefix;
    if (
$match == 'exact')
    {
        
$sql "SELECT DISTINCT `id`, `subject`, `sent`
            FROM `" 
$db_prefix "_private_messages` 
            WHERE `text` LIKE '%" 
$search_for "%'
            ORDER BY `sent` DESC"
;
    }
    elseif (
$match == 'all')
    {
        
$a explode(' '$search_for);
        
$ands implode("%' AND `message` LIKE '%"$a);
        
$sql "SELECT DISTINCT `id`, `subject`, `sent`
            FROM `" 
$db_prefix "_private_messages`
            WHERE `text` LIKE '%" 
$ands "%'
            ORDER BY `sent` DESC"
;
    }
    else
    {
        
$a explode(' '$search_for);
        
$ors implode("%' OR `text` LIKE '%"$a);
        
$sql "SELECT DISTINCT `id`, `subject`, `sent`
            FROM `" 
$db_prefix "_private_messages`
            WHERE `text` LIKE '%" 
$ors "%' 
            ORDER BY `sent` DESC"
;
    }
    
    
$result $db->sql_query($sql);
    
$pms = array();
    while(
$array $db->sql_fetchrow($result))
    {
        
$pms[] = $array;
    }
$db->sql_freeresult($result);
    return 
$pms;
}
function 
rpm_get_latest_pms($limit_by)
{
    global 
$db$db_prefix;
    
$res "
        SELECT *
        FROM `" 
$db_prefix "_private_messages`
        ORDER BY `sent` DESC
        LIMIT 0, " 
$limit_by "
    "
;
    
$result $db->sql_query($res) or btsqlerror($res);
    
$pms = array();
    while(
$array $db->sql_fetchrow($result))
    {
        
$pms[] = $array;
    }
$db->sql_freeresult($result);
    return 
$pms;
}
function 
rpm_get_pms($userid)
{
    global 
$db$db_prefix;
    
$res "
        SELECT     *
        FROM `" 
$db_prefix "_private_messages` AS pm
        WHERE pm.sender=" 
$userid " OR pm.recipient=" $userid "
        ORDER BY `sent` DESC
    "
;
    
$result $db->sql_query($res) or btsqlerror($res);
    
$pms = array();
    while(
$array $db->sql_fetchrow($result))
    {
        
$pms[] = $array;
    }
$db->sql_freeresult($result);
    return 
$pms;
}
function 
print_cells_row($array$isheaderrow false$class false$i 0$valign 'top'$column false$smallfont false)
{
    global 
$colspan$bgcounter$stylevar;

    if (
is_array($array))
    {
        
$colspan sizeof($array);
        if (
$colspan)
        {
            
$j 0;
            
$doecho 0;

            if (!
$class AND !$column AND !$isheaderrow)
            {
                
$bgclass fetch_row_bgclass();
            }
            elseif (
$isheaderrow)
            {
                
$bgclass 'thead';
            }
            else
            {
                
$bgclass $class;
            }

            
$bgcounter iif($column0$bgcounter);
            
$out "<tr valign=\"$valign\" align=\"center\">\n";

            foreach(
$array AS $key => $val)
            {
                
$j++;
                if (
$val == '' AND !is_int($val))
                {
                    
$val '&nbsp;';
                }
                else
                {
                    
$doecho 1;
                }

                if (
$i++ < 1)
                {
                    
$align " align=\"$stylevar[left]\"";
                }
                elseif (
$j == $colspan AND $i == $colspan AND $j != 2)
                {
                    
$align " align=\"$stylevar[right]\"";
                }
                else
                {
                    
$align '';
                }

                if (!
$class AND $column)
                {
                    
$bgclass fetch_row_bgclass();
                }
                if (
$smallfont)
                {
                    
$val "<span class=\"smallfont\">$val</span>";
                }
                
$out .= "\t<td" iif($column" class=\"$bgclass\""" class=\"$bgclass\"") . "$align>$val</td>\n";
            }

            
$out .= "</tr>\n";

            if (
$doecho)
            {
                echo 
$out;
            }
        }
    }
}
function 
print_label_row($title$value '&nbsp;'$class ''$valign 'top'$helpname NULL$dowidth false)
{
    global 
$stylevar;

    if (!
$class)
    {
        
$class fetch_row_bgclass();
    }

    if (
$helpname !== NULL AND $helpbutton construct_table_help_button($helpname))
    {
        
$value '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr valign="top"><td>' $value "</td><td align=\"$stylevar[right]\" style=\"padding-$stylevar[left]:4px\">$helpbutton</td></tr></table>";
    }

    if (
$dowidth)
    {
        if (
is_numeric($dowidth))
        {
            
$left_width $dowidth;
            
$right_width 100 $dowidth;
        }
        else
        {
            
$left_width 70;
            
$right_width 30;
        }
    }

    echo 
"<tr valign=\"$valign\">
    <td class=\"
$class\"" . ($dowidth " width=\"$left_width%\"" '') . ">$title</td>
    <td class=\"
$class\"" . ($dowidth " width=\"$right_width%\"" '') . ">$value</td>\n</tr>\n";
}
function 
rpm_print_stop_back($text 'error')
{
    global 
$vbphrase;
    echo 
'<p>&nbsp;</p><p>&nbsp;</p>';
    
print_form_header(''''01'messageform''65%');
    
print_table_header($vbphrase['vbulletin_message']);
    
print_description_row("<blockquote><br />$text<br /><br /></blockquote>");
    
print_table_footer(2'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
    
rpm_print_footer();
}

// ####################### LIST USERS WITH X AMOUNT OF PMs ##########################
if ( $_REQUEST['do'] == 'havepms' )
{
    
// grab list of users that have PMs
    
$havepms rpm_get_pm_users($_REQUEST['totalpms']);

    
// if there are no PMs
    
if (!$db->sql_numrows($havepms))
    {
        
rpm_print_stop_back('There are no PMs.');
        die();
    }

    
// show the list
    
OpenTable(HACK_TITLE ' - List Users With ' $_REQUEST['totalpms'] . ' PMs');
    
print_form_header(''''01'havepmsForm');
    
print_table_header('List of users with ' $_REQUEST['totalpms'] . ' PMs');
    while(
$pms $db->sql_fetchrow($havepms))
    {
        
$link1 THIS_SCRIPT '.php?do=list&userid=' $pms['userid'];
        
$link2 'pm.php?op=send&to=' $pms['userid'];
        
$link3 'user.php?op=editprofile&id=' $pms['userid'];
        
$row '<span style="float:right">[<a href="' $link1 '">Show All PMs</a>] ';
        
$row .= '[<a href="' $link2 '">Send PM to User</a>] ';
        
$row .= '[<a href="' $link3 '">Edit User</a>]</span>';
        
$row .= '<b>' $pms['username'] . '</b>';
        
print_description_row($row);
    }
    
print_table_footer(2'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
    
CloseTable();
}
// ####################### LIST ALL USERS WITH PMs ##########################
if ($_REQUEST['do'] == 'allusershavepms')
{
    
// get array of PM counts
    
$pmcounts rpm_get_all_pm_users();
    
//die(print_r($pmcounts));

    
print_form_header(''''01'allusershavepmsForm');
    
print_table_header('List Users With PMs');

    
// assign the counts
    
$pmtotals = array();
    while (
$currentpmcount $db->sql_fetchrow($pmcounts))
    {
        
$pmtotals["$currentpmcount[total]"]++;
    }
    
// construct & display the rows
    
foreach ($pmtotals AS $pmtotal => $totalusers)
    {
        if (
$totalusers != 1)
        {
            
$usertext 'There are ' $totalusers .' users';
        }
        else
        {
            
$usertext 'There is ' $totalusers .' user';
        }
        
$link THIS_SCRIPT '.php?do=havepms&totalpms=' $pmtotal;
        
$row '<span style="float:right">[<a href="' $link '">List All Users</a>]</span>';
        
$row .= $usertext ' with ' $pmtotal ' PMs' ;
        
print_description_row($row);
    }
    
print_table_footer(2'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
}
// ############################# READ PMs #################################
if ($_REQUEST['do'] == 'list')
{
    
// if no userid or username entered
    
if (empty($_REQUEST['userid']))
    {
        print(
'You need to enter a User ID or Username.');
    }
    
    
// if it is a username
    
if (!is_numeric($_REQUEST['userid']))
    {
        
// check the username exists and assign it
        
$userid rpm_username_exists($_REQUEST['userid']);
        
        
// if username does not exist
        
if (empty($userid))
        {
            print(
'User <b>' $_REQUEST['userid'] . '</b> does not exist.' $userid);
            die();
        }
    }
    else 
// if userid
    
{
        
// if userid does not exist
        
if (!rpm_user_exists($_REQUEST['userid']))
        {
            print(
'User ID: <b>' $_REQUEST['userid'] . '</b> does not exist.');
            die();
        }
        
        
// assign the userid
        
$userid $_REQUEST['userid'];
    }
    
    
// get all PMs for the user
    
$pms rpm_get_pms($userid);
    
    
// if there are no PMs
    
if (empty($pms))
    {
        print(
'User <b>' $_REQUEST['userid'] . '</b> has no PMs.');
        die();
    }
    
    
// get the username
    
$name rpm_get_name($userid);
    
    
// seperate sent and recieved PMs
    
$sent = array();
    
$received = array();
    foreach (
$pms AS $pm)
    {
        
// seperate sent and recieved PMs (also takes into account user sending to self via to or bcc)
        
if ($pm['sender'] == $userid)
        {
            
$sent[] = $pm;
        }
        else
        {
            
$received[] = $pm;
        }
    }
    
    
// display list of sent PMs
    
print_form_header(''''01'sentpmlistForm');
    
print_table_header(count($sent) . ' PMs sent from ' $name ' (Userid: ' $userid ')'4);
    if (empty(
$sent))
    {
        
print_description_row('<center>There are no sent PMs to view.</center>');
    }
    else
    {
        
print_cells_row(array('pmtextid''PM Title''Date'''), 1);
        foreach (
$sent AS $pm)
        {
            
$date $pm['sent'];
            
$link THIS_SCRIPT '.php?do=read&pmtextid=' $pm['id'];
            
$row = array();
            
$row[] = '<div class="smallfont">' $pm['id'] . '</div>';
            
$row[] = '<div class="smallfont"><span style="float:left">' $pm['subject'] . '</span></div>';
            
$row[] = '<div class="smallfont">' $date '';
            
$row[] = '<div class="smallfont">[<a href="' $link '">View Private Message</a>]</div>';
            
print_cells_row($row);
        }
    }    
    
print_table_footer(4'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
    
    
// display list of recieved PMs
    
print_form_header(''''01'receivedpmlistForm');
    
print_table_header(count($received) . ' PMs recieved for ' $name ' (Userid: ' $userid ')'5);
    if (empty(
$received))
    {
        
print_description_row('<center>There are no recieved PMs to view.</center>');
    }
    else
    {
        
print_cells_row(array('pmtextid''PM Title''From''Date'''), 1);
        foreach (
$received AS $pm)
        {
            
$date $pm['sent'];
            
$link THIS_SCRIPT '.php?do=read&pmtextid=' $pm['id'];
            
$row = array();
            
$row[] = '<div class="smallfont">' $pm['id'] . '</div>';
            
$row[] = '<div class="smallfont"><span style="float:left">' $pm['subject'] . '</span></div>';
            
$row[] = '<div class="smallfont">' $pm['sender'] . '</div>';
            
$row[] = '<div class="smallfont">' $date '';
            
$row[] = '<div class="smallfont">[<a href="' $link '">View Private Message</a>]</div>';
            
print_cells_row($row);
        }
    }
    
print_table_footer(5'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
}
if (
$_REQUEST['do'] == 'read')
{
    
// no pmtextid
    
if (empty($_REQUEST['pmtextid']))
    {
        print(
'Need a pmtextid.');
        die();
    }
    
    
// if pmtext is not a number or number < 1
    
if (!is_numeric($_REQUEST['pmtextid']) OR $_REQUEST['pmtextid'] < 1)
    {
        print(
'Pmtextid must be a positive number.');
        die();
    }
    
    
// get the requested PM
    
$pm rpm_get_pm($_REQUEST['pmtextid']);
    
    
// PM does not exist
    
if (empty($pm))
    {
        print(
'Pmtextid <b>' $_REQUEST['pmtextid'] . '</b> does not exist.');
        die();
    }
    
    
// get all userids for the users that still have the PM with pmtextid
    
$userids $db->sql_fetchrow($db->sql_query("
        SELECT DISTINCT `sender`
        FROM `"
.$db_prefix."_private_messages`
        WHERE `id` = " 
$_REQUEST['pmtextid'] . "
    "
));
    
    
// If there are no userids then the PM does not exist (this handles the last x PMs)
    
if (empty($userids))
    {
        print(
'
            <center>Pmtextid <b>' 
$_REQUEST['pmtextid'] . '</b> has been deleted and can not be recovered.
            <br />The non-existant entry will be automatically removed within the hour by the
            <br /><b>Hourly Cleanup #2</b> scheduled task.</center>
        '
);
        die();
    }
    
    
// grab array of to and bcc users
    //$toarray = array_values(unserialize($pm['touserarray']));

    // convert date to readable format
    
$date $pm['sent'];
    
    
// show PM contents
    
print_form_header(''''01'pmlistForm');
    
print_table_header('Private Message Text ID : ' $pm['id'],2);
    
print_label_row('<b>From:</b></b><dfn>Link goes to users Details.</dfn>'$pm['sender'] . ' (<a href = "user.php?op=profile&id=' $pm['sender'] . '">userid: ' $pm['sender'] . '</a>)');
    if (
is_array($toarray[0]))
    {
        
print_label_row('<b>To:</b><dfn>Link(s) goes to users Details.</dfn>' rpm_display_recipients_with_links($toarray[0]));
    }
    if (
is_array($toarray[1]))
    {
        
print_label_row('<b>BCC:</b></b><dfn>Link(s) goes to users Details.</dfn>' rpm_display_recipients_with_links($toarray[1]));
    }
    
print_label_row('<b>PM Title:</b>'$pm['subject']);
    
print_label_row('<b>Date:</b>'$date);
    
                                
$message format_comment($pm['text'], falsetrue);
                                
parse_smiles($message);
    
print_label_row('<b>Message:''<div class="smallfont">' $message '</div>');
    
print_table_footer(2'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
}
// ############################### SEARCH #################################
if ($_REQUEST['do'] == 'search')
{
    
// if no search terms have been entered
    
if (empty($_REQUEST['search']))
    {
        
rpm_print_stop_back('You must type in at least one word to search for.');
    }
    
// assign and make search terms safe
    
$search_for $_REQUEST['search'];
    
    
// see if any of the search terms is lower than the minimum length 
    
$words explode(" "$search_for);
    foreach (
$words AS $current)
    {
        if (
strlen($current) < MIN_SEARCH_WORD_LENGTH)
        {
            
rpm_print_stop_back('At least one of your search terms was less than ' MIN_SEARCH_WORD_LENGTH .' characters long.');
        }
    }
    
    
// assign the type of match
    
$match $_REQUEST['match'];
    
    
// conduct the search
    
$pms rpm_search_pms($search_for$match);
    
    
// format search words for display purposes
    
switch ($match)
    {
        case 
'exact':
            
$search_words str_replace(" "" + "$search_for);
            
$search_wording 'the exact text';
            break;

        case 
'all':
            
$search_words str_replace(" "" and "$search_for);
            
$search_wording 'all of the following words';
            break;

        case 
'atleastone':
            
$search_words str_replace(" "" or "$search_for);
            
$search_wording 'at least one of the following words';
            break;
    }

    
// display list of PMs found
    
print_form_header(''''01'pmlistForm');
    
print_table_header('Search Results for ' $search_wording ': ' $search_words ''4);
    if (empty(
$pms))
    {
        
print_description_row('<center>There are no results to view for the search text.</center>');
    }
    else
    {
        
print_cells_row(array('pmtextid''PM Title''Date'''), 1);
        foreach (
$pms AS $pm)
        {
            
$date $pm['sent'];
            
$link THIS_SCRIPT '.php?do=read&pmtextid=' $pm['id'];
            
$row = array();
            
$row[] = '<div class="smallfont">' $pm['id'] . '</div>';
            
$row[] = '<div class="smallfont"><span style="float:left">' $pm['subject'] . '</span></div>';
            
$row[] = '<div class="smallfont">' $date '';
            
$row[] = '<div class="smallfont">[<a href="' $link '">View Private Message</a>]</div>';
            
print_cells_row($row);
        }
    }
    
print_table_footer(4'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
}

// ########################### LATEST X PMs ###############################
if ($_REQUEST['do'] == 'latest')
{
    
// if nothing entered or zero entered
    
if (empty($_REQUEST['showlatest']))
    {
        
rpm_print_stop_back('Enter a positive number greater than 0.');
    }

    
// if non-numeric or negative number entered
    
if (!is_numeric($_REQUEST['showlatest']) OR $_REQUEST['showlatest'] < 1)
    {
        
rpm_print_stop_back('Enter a positive number greater than 0.');
    }
    
    
// get the PM list
    
$pms rpm_get_latest_pms($_REQUEST['showlatest']);
    
    
// if no PMs
    
if (empty($pms))
    {
        
rpm_print_stop_back('There are no PMs to view.');
    }
    
    
// display PM list
    
print_form_header(''''01'pmlistForm');
    
print_table_header('Show Last ' $_REQUEST['showlatest'] . ' PMs'5);
    
print_cells_row(array('pmtextid''PM Title''From''Date'''), 1);
    foreach (
$pms AS $pm)
    {
        
$date $pm['sent'];
        
$link THIS_SCRIPT '.php?do=read&pmtextid=' $pm['id'];
        
$row = array();
        
$row[] = '<div class="smallfont">' $pm['id'] . '</div>';
        
$row[] = '<div class="smallfont"><span style="float:left">' $pm['subject'] . '</span></div>';
        
$row[] = '<div class="smallfont">' $pm['sender'] . '</div>';
        
$row[] = '<div class="smallfont">' $date '';
        
$row[] = '<div class="smallfont">[<a href="' $link '">View Private Message</a>]</div>';
        
print_cells_row($row);
    }
    
print_table_footer(5'<input class="button" value="Go Back" title="" tabindex="1" onclick="window.location=\'javascript:history.back(1)\';" type="button">');
}

//$byuser = "WHERE username ='".escape($userid)."' OR name = '".escape($userid)."' OR clean_username = '".escape(strtolower($userid))."' OR id = ".escape($userid)."";
//////////END PAGER///////////
$res $db->sql_query("SELECT * FROM torrent_private_messages $byuser ORDER BY id DESC $limit") or sqlerr(__FILE____LINE__);
if (empty(
$_REQUEST['do']))
{

?>
<!-- form started:6 queries executed -->
<form action="admin_pms.php?do=list" method="post" name="listForm" id="listForm">
<input type="hidden" name="do" value="list" />
<input type="hidden" name="adminhash" value="3e73dc37dcedd5625580f2b3003a7c54" />
<input type="hidden" name="securitytoken" value="1246320728-ece494df92d839cbf13763b1e8d2fd3fdae46f8c" />

<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" style="border-collapse:separate" class="tborder" id="listForm_table">
<tr>
    <td class="tcat" align="center" colspan="2"><b>Read PMs</b></td>
</tr>
<tr valign="top">
    <td class="alt1">User ID or Username</td>
    <td class="alt1"><div id="ctrl_userid"><input type="text" class="bginput" name="userid" id="it_userid_1" value="" size="35" dir="ltr" tabindex="1" /></div></td>
</tr>
<tr>
    <td class="tfoot" colspan="2" align="center">    <input type="submit" id="submit0" class="button" tabindex="1" value="Read PMs" accesskey="s" />

</td>
</tr>
</table>
</form>
<!-- form ended: 6 queries executed -->


<!-- form started:6 queries executed -->
<form action="admin_pms.php?do=havepms" method="post" name="resetForm" id="resetForm">
<input type="hidden" name="do" value="allusershavepms" />
<input type="hidden" name="adminhash" value="3e73dc37dcedd5625580f2b3003a7c54" />
<input type="hidden" name="securitytoken" value="1246320728-ece494df92d839cbf13763b1e8d2fd3fdae46f8c" />
<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" style="border-collapse:separate" class="tborder" id="resetForm_table">
<tr>
    <td class="tfoot" colspan="2" align="center">    <input type="submit" id="submit1" class="button" tabindex="1" value="List Users with PMs" accesskey="s" />

</td>
</tr>
</table>
</form>
<!-- form ended: 6 queries executed -->


<!-- form started:6 queries executed -->
<form action="admin_pms.php?do=search" method="post" name="searchForm" id="searchForm">
<input type="hidden" name="do" value="search" />
<input type="hidden" name="adminhash" value="3e73dc37dcedd5625580f2b3003a7c54" />
<input type="hidden" name="securitytoken" value="1246320728-ece494df92d839cbf13763b1e8d2fd3fdae46f8c" />
<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" style="border-collapse:separate" class="tborder" id="searchForm_table">
<tr>
    <td class="tcat" align="center" colspan="2"><b>Search for PMs</b></td>

</tr>
<tr valign="top">
    <td class="alt1">Search for<p><input type="button" unselectable="on" value="Large Edit Box" class="button" style="font-weight:normal" onclick="window.open('textarea.php?dir=ltr&name=search','textpopup','resizable=yes,scrollbars=yes,width=' + (screen.width - (screen.width/10)) + ',height=600');" /></p></td>
    <td class="alt1"><div id="ctrl_search"><textarea name="search" id="ta_search_2" rows="4" cols="40" wrap="virtual" dir="ltr" tabindex="1"></textarea><div class="smallfont"><a href="#"  onclick="return resize_textarea(1, 'ta_search_2')">Increase Size</a> <a href="#"  onclick="return resize_textarea(-1, 'ta_search_2')">Decrease Size</a></div></div></td>
</tr>
<tr valign="top">
    <td class="alt2">Match</td>
    <td class="alt2"><div class="normal">

<div class="ctrl_">        <label for="rb_matchexact_3"><input type="radio" name="match" id="rb_matchexact_3" tabindex="1" value="exact" checked="checked" />exact text</label><br />
        <label for="rb_matchall_3"><input type="radio" name="match" id="rb_matchall_3" tabindex="1" value="all" />all words</label><br />
        <label for="rb_matchatleastone_3"><input type="radio" name="match" id="rb_matchatleastone_3" tabindex="1" value="atleastone" />at least one of the words</label><br />
</div>    </div></td>
</tr>
<tr>
    <td class="tfoot" colspan="2" align="center">    <input type="submit" id="submit2" class="button" tabindex="1" value="Search for PMs" accesskey="s" />
</td>

</tr>
</table>
</form>
<!-- form ended: 6 queries executed -->


<!-- form started:6 queries executed -->
<form action="admin_pms.php?do=latest" method="post" name="latestForm" id="latestForm">
<input type="hidden" name="do" value="latest" />
<input type="hidden" name="adminhash" value="3e73dc37dcedd5625580f2b3003a7c54" />
<input type="hidden" name="securitytoken" value="1246320728-ece494df92d839cbf13763b1e8d2fd3fdae46f8c" />
<br />
<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" style="border-collapse:separate" class="tborder" id="latestForm_table">
<tr>
    <td class="tcat" align="center" colspan="2"><b>Latest PMs</b></td>

</tr>
<tr valign="top">
    <td class="alt1">Number of PMs to show</td>
    <td class="alt1"><div id="ctrl_showlatest"><input type="text" class="bginput" name="showlatest" id="it_showlatest_4" value="100" size="35" dir="ltr" tabindex="1" /></div></td>
</tr>
<tr>
    <td class="tfoot" colspan="2" align="center">    <input type="submit" id="submit3" class="button" tabindex="1" value="Latest PMs" accesskey="s" />
</td>
</tr>
</table>
</form>
<!-- form ended: 6 queries executed -->
<?php
}
include(
"footer.php");
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #2  
Old 14th June 2010, 16:29
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
At what .php and where do i insert that script?
Reply With Quote
  #3  
Old 15th June 2010, 01:03
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
you make a new file called admin_pms.php
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #4  
Old 15th June 2010, 14:46
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
I made a new file as you said but nothing shows in admin page...
Doesn't it wants another file for admin/items/ and a png file so that it shows at you admin.php?
Reply With Quote
  #5  
Old 15th June 2010, 22:49
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
I did not make this to go in admin files only root
was just a quick little something I made just place a link to it in your nav bar or something like this
Code:
if($user->admin)echo "<a href=\"admin_pms.php\"> Admin PMs</a>";
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #6  
Old 11th August 2012, 19:45
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
after doing what you write above, but giving as link this in my main.php of my theme:


PHP Code:
<li><a href="admin_pms.php"><img title="Admin PMs " alt="Admin PMs " src="admin-pms.png" onmouseover="javascript:descriptor('Admin PMs ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li
wrote this because all other links are this form links...and because what you wrote didn't give me a link as it should...

it gives me:
Code:
you can't access this file directly
What should i alter to get it working?
Reply With Quote
  #7  
Old 11th August 2012, 23:07
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Quote:
Originally Posted by Giorgatzelos View Post
after doing what you write above, but giving as link this in my main.php of my theme:


PHP Code:
<li><a href="admin_pms.php"><img title="Admin PMs " alt="Admin PMs " src="admin-pms.png" onmouseover="javascript:descriptor('Admin PMs ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li
wrote this because all other links are this form links...and because what you wrote didn't give me a link as it should...

it gives me:
Code:
you can't access this file directly
What should i alter to get it working?
please what is the link in the nav bar when you get the error?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #8  
Old 11th August 2012, 23:44
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Quote:
Originally Posted by joeroberts View Post
please what is the link in the nav bar when you get the error?
that is the link tht returns me you can't access this file directly
Code:
<li><a href="admin_pms.php"><img title="Admin PMs " alt="Admin PMs " src="admin-pms.png" onmouseover="javascript:descriptor('Admin PMs ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
and i login as admin...

your code

Code:
if($user->admin)echo "<a href=\"admin_pms.php\"> Admin PMs</a>";
did'nt work for my main.php plus it didn't have icon link or hover text name...
Anyway this is my main.php of my theme...
Code:
<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen = false;
$errtableopen = false;
$table2open = false;
$btback1 = "c0c0c0";
$btback2 = "acd2ef";
$btback3 = "3ca22e";
                   

function OpenTable($title = "title", $tablewidth = "") {
        global $tableopen, $siteurl;
        if ($tableopen) return;
		if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
		else $stylewidth = '';
        echo "<div class=\"mainbox\" ".$stylewidth."> ";
	echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
	       
	$tableopen = true;
}

function CloseTable() {
        global $tableopen, $siteurl;
        if (!$tableopen) return;
        echo "</div></div>";

        $tableopen = false;
}

function OpenTable2($title = "") {
      global $tableopen2, $siteurl;
        if ($tableopen2) return;
        echo "<div id=\"messagebox\" > ";
	echo "<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
	       
	$tableopen2 = true;
 }

function CloseTable2() {
          global $tableopen2, $siteurl;
        if (!$tableopen2) return;
        echo "</div></div>";

        $tableopen2 = false;
}

function OpenNewsTable($title = "") {
      global $OpenNewsTable, $siteurl;
        if ($OpenNewsTable) return;
        echo "<div id=\"newsbox\" > ";
	       
	$OpenNewsTable = true;
 }

function CloseNewsTable() {
          global $OpenNewsTable, $siteurl;
        if (!OpenNewsTable) return;
        echo "</div>";

        $OpenNewsTable = false;
}

function OpenMessTable($title = "") {
      global $OpenMessTable, $siteurl;
        if ($OpenMessTable) return;
        echo "<div id=\"messagebox\"> ";
	echo "<span class=\"messagebox-title\">".$title."</span>";
	       
	$OpenMessTable = true;
 }

function CloseMessTable() {
          global $OpenMessTable, $siteurl;
        if (!$OpenMessTable) return;
        echo "</div>";

        $OpenMessTable = false;
}

function OpenSuccTable($title = "") {
      global $OpenSuccTable, $siteurl;
        if ($OpenSuccTable) return;
        echo "<div id=\"successbox\" > ";
	echo "<span class=\"successbox-title\">".$title."</span>";
	       
	$OpenSuccTable = true;
 }

function CloseSuccTable() {
          global $OpenSuccTable, $siteurl;
        if (!$OpenSuccTable) return;
        echo "</div>";

        $OpenSuccTable = false;
}
function OpenErrTable($title) {
      global $OpenErrTable, $siteurl;
        if ($OpenErrTable) return;
        echo "<div id=\"errorbox\" > ";
	echo "<span class=\"errorbox-title\">".$title."</span>";
	       
	$OpenErrTable = true;
 }

function CloseErrTable() {
          global $OpenErrTable, $siteurl;
        if (!$OpenErrTable) return;
        echo "</div>";

        $OpenErrTable = false;
}
function themechange(){
{
global $bttheme;
        $themes = Array();
        $thememaindir = "themes";
        $themehandle = opendir($thememaindir);
        while ($themedir = readdir($themehandle)) {
                if (is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        $themes[$themedir] = $themedir;
        }
        closedir($themehandle);
        unset($thememaindir,$themedir);
}
        $change = '';
foreach ($themes as $key=>$val) {
		$change .= "<option ";
        if ($bttheme == $key) $change .="selected ";
        $change .= "value=\"".$key."\">".$val."</option>\n";
}
unset($themes);
return $change;
}
function languagechange(){
{
global $language;
        $languages = Array();
        $langdir = "language";
        $langhandle = opendir($langdir);
        while ($langfile = readdir($langhandle)) {
                if (eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        $languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        closedir($langhandle);
        unset($langdir,$langfile);
}
        $change = '';
foreach ($languages as $key=>$val) {
        $change .="<option ";
        if ($language == $key) $change .="selected";
        $change .=" value=\"".$key."\">".$val."</option>\n";
}
unset($languages);
return $change;
}

function themeheader() {
global $db, $db_prefix, $theme, $siteurl, $user, $upload_level, $sitename, $gfx_check, $donations, $INVITEONLY,$onlysearch, $pivate_mode;

if ($user->user) {
        //Update online user list
        $pagename = substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        $sqlupdate = "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        $sqlinsert = "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        $res = $db->sql_query($sqlupdate);
        if (!$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}

echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo "<head>\n";
echo "<meta name=\"description\" content=\"Greek Anime Tracker\">\n";
echo "<meta name=\"keywords\" content=\" greek, anime, torrent, tracker, subbed, dubbed, cartoon, animation, archectypo, archetypo, arxetypo, archectypo, arxetipo, fansub, subtitles, styled, subs, aegisub, \">\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo "<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo "<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo "<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->";
echo "<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl; ?>";
tag_prompt = "<?php echo _bb_tag_prompt; ?>";
img_prompt = "<?php echo _bb_img_prompt; ?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt; ?>";
link_text_prompt = "<?php echo _bb_link_text_prompt; ?>";
link_url_prompt = "<?php echo _bb_link_url_prompt; ?>";
link_email_prompt = "<?php echo _bb_link_email_prompt; ?>";
list_type_prompt = "<?php echo _bb_list_type_prompt; ?>";
list_item_prompt = "<?php echo _bb_list_item_prompt; ?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate; ?>";
</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo "<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!$onlysearch) {
        echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (is_readable("themes/$theme/style.css")) {
        echo "<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}  
overlib_init();

echo "</head>\n\n";


$themepage = false;
?>
<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo "<body>";
?>



<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo "<body>";
echo"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n";
echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo "<div id=\"pmbtwrap\">\n";
echo'<img src="themes/archeCtypo_Original/pics/logo.png" height="400" width="950" ><div id="theme-header">
	</div>
	<div id="theme-body"><div align="center"><br>';
?>
<script src="../AppData/Local/Temp/java/stuHover.js" type="text/javascript"></script>
<div id="pro_linedrop">
<ul class="select">



<li class="line lrt"><a href="torrents.php?"><b class="arrow">Εργαλεία Διαχείρησης</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
	<ul class="sub rt">
   
                  <li><a href="upload.php"><img title="Ανέβασμα " alt="Ανέβασμα " src="upload.png" onmouseover="javascript:descriptor('Ανέβασμα ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>

                  <li><a href="helpdesk.php"><img title="Διαχείρηση Βοήθειας " alt="Διαχείρηση Βοήθειας " src="help.png" onmouseover="javascript:descriptor('Διαχείρηση Βοήθειας ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>

                  <li><a href="admin.php?op=staffmess&page=sendmail#staffmess&page=sendmail"><img title="Μαζικά Μηνύματα " alt="Μαζικά Μηνύματα " src="mass.png" onmouseover="javascript:descriptor('Μαζικά Μηνύματα ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>               
                  
                  <li><a href="admin_pms.php"><img title="Διαχείρηση PMs " alt="Διαχείρηση PMs " src="admin-pms.png" onmouseover="javascript:descriptor('Διαχείρηση PMs ');" onmouseout="javascript:descriptor(' ')" border="0"></a></li>
</li>
</ul>
</div>
<br /><br />
<div id="menuline">
<?
include("./blocks/usercp.php");
if ($user->user AND $INVITEONLY)
{
	
		
		OpenTable(_btinvites);
		echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
		echo "<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
		if ($user->invites > 0 ){
		echo "<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
		}
		echo "</table>";
		
		CloseTable();
	
}?>
</div>
<?
echo "<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function newuserpage($page)
{
if(eregi("faq.php",$page))return true;
if(eregi("rules.php",$page))return true;
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 loginrequired("user", false);
 include'footer.php';
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason = "";
if (is_banned($user, $reason)) {
        echo "<p> </p>\n";
        echo "<p> </p>\n";
        echo "<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo "<p> </p>\n";
        echo "<p> </p>\n";
        include("footer.php");
        die();
}


echo "<table width=\"100%\">\n";
echo "<tr>\n";
echo "<td width=\"2%\" valign=\"top\">\n";
echo "<div >";
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if ($donations){
include("./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo "</div></td>\n";
echo "<td width=\"75%\" valign=\"top\">\n";
echo "<div id=\"rightcolumn\">";
$sql_profile = "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile = $db->sql_query($sql_profile);
$userrow = $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if ($user->downloaded > 0){
include ("./ratiowarn.php");
}
}

$has_newpm = false;
$sql = "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res = $db->sql_query($sql) or btsqlerror($sql);
$pmcount = $db->sql_numrows($res);
$has_newpm = ($pmcount > 0) ? true : false;
$db->sql_freeresult($res);
if ($has_newpm)
{
 print("<center><p><table border=0 cellspacing=0 cellpadding=0 bgcolor=green><tr><td style='padding: 10px; background: red'>\n");
 print("<a href=pm.php?op=inbox><font color=white><u>You Have <B>".$pmcount."</b> New Message!</U></font></a>");
 print("</td></tr></table></p></center>\n");
}

 if ($userrow["warned"])
 {
$warn_kapta = $userrow["warn_kapta"];
$warn_hossz = $userrow["warn_hossz"];
$modcomment = $userrow["modcomment"];

if ($warn_hossz != -1) {
$warn = $warn_kapta + $warn_hossz;
$time_now = strtotime(gmdate("Y-m-d H:i:s", time()));
if ($warn < $time_now)
{
$modcomment = "[ " . gmdate("Y-m-d H:i:s", time()) . " - WARN time expired ]\n" . $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id. ",'WARNING' '" . $msg ."', NOW())") or die(mysql_error());  
$modcomment = $modcomment;
$frissites = $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while($row = $db->sql_fetchrow($res)){
$kom = $db->sql_fetchrow( $db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor = $db->sql_fetchrow( $db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!$kom[0] && $tor[owner] !=  $user->id){
 $komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 /////////////////////////////////////////////////////////////
if ($user->user) {
 if ($komment){
 print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print("Please leave a comment on:<br>$komment");
 print("</td></tr></table></p>\n");
}
}
}

function overlib_init() {
        echo "<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
        echo "<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
}
function themefooter(){
global $startpagetime;
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo"</div></td><td width=\"18%\" valign=top >";
echo"</td>";
echo"</tr>";
}
echo'
<tr>
<td>
<td><p class="footer">
<br>
<br>
<br>
<br>
 Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον παρών server.<br>
 Δέν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 phpMyBitTorrent © 2005-2011 <a href="http://phpmybittorrent.com">phpMyBitTorrent Team</a>.<br>
 All Rights Reserved. © 2009 www.archectypo.com<br>
 Contact @ Giorgatzelos@gmail.com<br>
 Generated in ' . abs(round(microtime()-$startpagetime,2)) . ' seconds
 </p>';
 echo'
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="theme-footer"></div>
</div>
</body>
</html>';
}
function help($name,$help,$title = "") { 
        echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'"; 
        if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'"; 
        echo ",FGCOLOR,'#ffffaa',CAPICON,'themes/pmbt/pics/help.png',SHADOW,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>"; 
}  
?>
i want to replace the red line with something functional...only by admins that appears also in the theme!

Last edited by Giorgatzelos; 12th August 2012 at 00:32.
Reply With Quote
  #9  
Old 12th August 2012, 09:21
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
ok got a couple questions first off

#1 the file is named admin_pms.php rite?
#2 the file is located in the same location as your index.php rite?
#3 is the image for the new file in the root folder or is it in the theme pic folder?
#4 did you make sure the file has chmod 777 ?
PHP Code:
<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen false;
$errtableopen false;
$table2open false;
$btback1 "c0c0c0";
$btback2 "acd2ef";
$btback3 "3ca22e";
                   

function 
OpenTable($title "title"$tablewidth "") {
        global 
$tableopen$siteurl;
        if (
$tableopen) return;
        if(
$tablewidth !=""$stylewidth "style=\"width: ".$tablewidth."px;\"";
        else 
$stylewidth '';
        echo 
"<div class=\"mainbox\" ".$stylewidth."> ";
    echo 
"<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        echo 
"</div></div>";

        
$tableopen false;
}

function 
OpenTable2($title "") {
      global 
$tableopen2$siteurl;
        if (
$tableopen2) return;
        echo 
"<div id=\"messagebox\" > ";
    echo 
"<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen2 true;
 }

function 
CloseTable2() {
          global 
$tableopen2$siteurl;
        if (!
$tableopen2) return;
        echo 
"</div></div>";

        
$tableopen2 false;
}

function 
OpenNewsTable($title "") {
      global 
$OpenNewsTable$siteurl;
        if (
$OpenNewsTable) return;
        echo 
"<div id=\"newsbox\" > ";
           
    
$OpenNewsTable true;
 }

function 
CloseNewsTable() {
          global 
$OpenNewsTable$siteurl;
        if (!
OpenNewsTable) return;
        echo 
"</div>";

        
$OpenNewsTable false;
}

function 
OpenMessTable($title "") {
      global 
$OpenMessTable$siteurl;
        if (
$OpenMessTable) return;
        echo 
"<div id=\"messagebox\"> ";
    echo 
"<span class=\"messagebox-title\">".$title."</span>";
           
    
$OpenMessTable true;
 }

function 
CloseMessTable() {
          global 
$OpenMessTable$siteurl;
        if (!
$OpenMessTable) return;
        echo 
"</div>";

        
$OpenMessTable false;
}

function 
OpenSuccTable($title "") {
      global 
$OpenSuccTable$siteurl;
        if (
$OpenSuccTable) return;
        echo 
"<div id=\"successbox\" > ";
    echo 
"<span class=\"successbox-title\">".$title."</span>";
           
    
$OpenSuccTable true;
 }

function 
CloseSuccTable() {
          global 
$OpenSuccTable$siteurl;
        if (!
$OpenSuccTable) return;
        echo 
"</div>";

        
$OpenSuccTable false;
}
function 
OpenErrTable($title) {
      global 
$OpenErrTable$siteurl;
        if (
$OpenErrTable) return;
        echo 
"<div id=\"errorbox\" > ";
    echo 
"<span class=\"errorbox-title\">".$title."</span>";
           
    
$OpenErrTable true;
 }

function 
CloseErrTable() {
          global 
$OpenErrTable$siteurl;
        if (!
$OpenErrTable) return;
        echo 
"</div>";

        
$OpenErrTable false;
}
function 
themechange(){
{
global 
$bttheme;
        
$themes = Array();
        
$thememaindir "themes";
        
$themehandle opendir($thememaindir);
        while (
$themedir readdir($themehandle)) {
                if (
is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        
$themes[$themedir] = $themedir;
        }
        
closedir($themehandle);
        unset(
$thememaindir,$themedir);
}
        
$change '';
foreach (
$themes as $key=>$val) {
        
$change .= "<option ";
        if (
$bttheme == $key$change .="selected ";
        
$change .= "value=\"".$key."\">".$val."</option>\n";
}
unset(
$themes);
return 
$change;
}
function 
languagechange(){
{
global 
$language;
        
$languages = Array();
        
$langdir "language";
        
$langhandle opendir($langdir);
        while (
$langfile readdir($langhandle)) {
                if (
eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        
$languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        
closedir($langhandle);
        unset(
$langdir,$langfile);
}
        
$change '';
foreach (
$languages as $key=>$val) {
        
$change .="<option ";
        if (
$language == $key$change .="selected";
        
$change .=" value=\"".$key."\">".$val."</option>\n";
}
unset(
$languages);
return 
$change;
}

function 
themeheader() {
global 
$db$db_prefix$theme$siteurl$user$upload_level$sitename$gfx_check$donations$INVITEONLY,$onlysearch$pivate_mode;

if (
$user->user) {
        
//Update online user list
        
$pagename substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        
$sqlupdate "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        
$sqlinsert "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        
$res $db->sql_query($sqlupdate);
        if (!
$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}

echo 
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo 
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo 
"<head>\n";
echo 
"<meta name=\"description\" content=\"Greek Anime Tracker\">\n";
echo 
"<meta name=\"keywords\" content=\" greek, anime, torrent, tracker, subbed, dubbed, cartoon, animation, archectypo, archetypo, arxetypo, archectypo, arxetipo, fansub, subtitles, styled, subs, aegisub, \">\n";
echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo 
"<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo 
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo 
"<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo 
"<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo 
"<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"
$siteurl/pngfix.js\"></script><![endif]-->";
echo 
"<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl?>";
tag_prompt = "<?php echo _bb_tag_prompt?>";
img_prompt = "<?php echo _bb_img_prompt?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt?>";
link_text_prompt = "<?php echo _bb_link_text_prompt?>";
link_url_prompt = "<?php echo _bb_link_url_prompt?>";
link_email_prompt = "<?php echo _bb_link_email_prompt?>";
list_type_prompt = "<?php echo _bb_list_type_prompt?>";
list_item_prompt = "<?php echo _bb_list_item_prompt?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate?>";
</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!
$onlysearch) {
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (
is_readable("themes/$theme/style.css")) {
        echo 
"<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}  
overlib_init();

echo 
"</head>\n\n";


$themepage false;
?>
<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo 
"<body>";
?>



<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo 
"<body>";
echo
"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n"
;
echo 
"<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo 
"<div id=\"pmbtwrap\">\n";
echo
'<img src="themes/archeCtypo_Original/pics/logo.png" height="400" width="950" ><div id="theme-header">
    </div>
    <div id="theme-body"><div align="center"><br>'
;

echo
"<script src=\"../AppData/Local/Temp/java/stuHover.js\" type=\"text/javascript\"></script>\n";
echo
"<div id=\"pro_linedrop\">\n";
echo
"<ul class=\"select\">\n";
echo
"<br />";
echo
"<br />";
echo
"<br />";
echo
"<li class=\"line lrt\"><a href=\"torrents.php?\"><b class=\"arrow\">Εργαλεία Διαχείρησης</b><!--[if IE 7]><!--></a><!--<![endif]-->";
echo
"<!--[if lte IE 6]><table><tr><td><![endif]-->";
echo
"    <ul class=\"sub rt\">";
echo
"<br />";
echo
"                  <li><a href=\"upload.php\"><img title=\"Ανέβασμα \" alt=\"Ανέβασμα \" src=\"themes/" $theme "/pics/upload.png\" onmouseover=\"javascript:descriptor('Ανέβασμα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>\n";
echo
"                  <li><a href=\"helpdesk.php\"><img title=\"Διαχείρηση Βοήθειας \" alt=\"Διαχείρηση Βοήθειας \" src=\"themes/" $theme "/pics/help.png\" onmouseover=\"javascript:descriptor('Διαχείρηση Βοήθειας ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>\n";
if (
$user->admin) {
echo
"                  <li><a href=\"./admin.php?op=staffmess&page=sendmail#staffmess&page=sendmail\"><img title=\"Μαζικά Μηνύματα \" alt=\"Μαζικά Μηνύματα \" src=\"themes/" $theme "/pics/mass.png\" onmouseover=\"javascript:descriptor('Μαζικά Μηνύματα ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>\n";              
echo
"                  <li><a href=\"./admin_pms.php\"><img title=\"Διαχείρηση PMs \" alt=\"Διαχείρηση PMs \" src=\"themes/" $theme "/pics/admin-pms.png\" onmouseover=\"javascript:descriptor('Διαχείρηση PMs ');\" onmouseout=\"javascript:descriptor(' ')\" border=\"0\"></a></li>\n";
}
echo
"</li>";
echo
"</ul>";
echo
"</div>";
echo
"<br /><br />";
echo
"<div id=\"menuline\">";
include(
"./blocks/usercp.php");
if (
$user->user AND $INVITEONLY)
{
    
        
        
OpenTable(_btinvites);
        echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
        echo 
"<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
        if (
$user->invites ){
        echo 
"<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
        }
        echo 
"</table>";
        
        
CloseTable();
    
}
echo 
"</div>";
echo 
"<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function 
newuserpage($page)
{
if(
eregi("faq.php",$page))return true;
if(
eregi("rules.php",$page))return true;
if(
eregi("user.php",$page))return true;
if(
eregi("takeconfirminvite.php",$page))return true;
if(
eregi("confirminvite.php",$page))return true;
return 
false;
}
if(
$pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 
loginrequired("user"false);
 include
'footer.php';
echo 
"<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo 
"<tr>\n";
echo 
"<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason "";
if (
is_banned($user$reason)) {
        echo 
"<p> </p>\n";
        echo 
"<p> </p>\n";
        echo 
"<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo 
"<p> </p>\n";
        echo 
"<p> </p>\n";
        include(
"footer.php");
        die();
}


echo 
"<table width=\"100%\">\n";
echo 
"<tr>\n";
echo 
"<td width=\"2%\" valign=\"top\">\n";
echo 
"<div >";
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if (
$donations){
include(
"./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo 
"</div></td>\n";
echo 
"<td width=\"75%\" valign=\"top\">\n";
echo 
"<div id=\"rightcolumn\">";
$sql_profile "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile $db->sql_query($sql_profile);
$userrow $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if (
$user->downloaded 0){
include (
"./ratiowarn.php");
}
}

$has_newpm false;
$sql "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res $db->sql_query($sql) or btsqlerror($sql);
$pmcount $db->sql_numrows($res);
$has_newpm = ($pmcount 0) ? true false;
$db->sql_freeresult($res);
if (
$has_newpm)
{
 print(
"<center><p><table border=0 cellspacing=0 cellpadding=0 bgcolor=green><tr><td style='padding: 10px; background: red'>\n");
 print(
"<a href=pm.php?op=inbox><font color=white><u>You Have <B>".$pmcount."</b> New Message!</U></font></a>");
 print(
"</td></tr></table></p></center>\n");
}

 if (
$userrow["warned"])
 {
$warn_kapta $userrow["warn_kapta"];
$warn_hossz $userrow["warn_hossz"];
$modcomment $userrow["modcomment"];

if (
$warn_hossz != -1) {
$warn $warn_kapta $warn_hossz;
$time_now strtotime(gmdate("Y-m-d H:i:s"time()));
if (
$warn $time_now)
{
$modcomment "[ " gmdate("Y-m-d H:i:s"time()) . " - WARN time expired ]\n" $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @
$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id",'WARNING' '" $msg ."', NOW())") or die(mysql_error());  
$modcomment $modcomment;
$frissites $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while(
$row $db->sql_fetchrow($res)){
$kom $db->sql_fetchrow$db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor $db->sql_fetchrow$db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!
$kom[0] && $tor[owner] !=  $user->id){
 
$komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 
/////////////////////////////////////////////////////////////
if ($user->user) {
 if (
$komment){
 print(
"<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print(
"Please leave a comment on:<br>$komment");
 print(
"</td></tr></table></p>\n");
}
}
}

function 
overlib_init() {
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
}
function 
themefooter(){
global 
$startpagetime;
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo
"</div></td><td width=\"18%\" valign=top >";
echo
"</td>";
echo
"</tr>";
}
echo
'
<tr>
<td>
<td><p class="footer">
<br>
<br>
<br>
<br>
 Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον παρών server.<br>
 Δέν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 phpMyBitTorrent © 2005-2011 <a href="http://phpmybittorrent.com">phpMyBitTorrent Team</a>.<br>
 All Rights Reserved. © 2009 www.archectypo.com<br>
 Contact @ Giorgatzelos@gmail.com<br>
 Generated in ' 
abs(round(microtime()-$startpagetime,2)) . ' seconds
 </p>'
;
 echo
'
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="theme-footer"></div>
</div>
</body>
</html>'
;
}
function 
help($name,$help,$title "") {
    global 
$theme;
        echo 
"<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'"
        if (
$title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'"
        echo 
",FGCOLOR,'#ffffaa',CAPICON,'themes/" $theme "/pics/help.png',SHADOW,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>"
}  
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #10  
Old 13th August 2012, 05:20
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
1.YES
2.YES
3.YES
4.YES

Does it have anyting to do with the forum? i did not set it up neither i have it open...but your mod worked at my last tracker attempt...
Reply With Quote
Reply

Tags
admin , pms

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
admin or moderator diablo21 Torrent Strike 1 18th August 2010 12:22
i'm not admin ciolpalas Torrent Trader 2 30th June 2010 13:10
Admin add user joeroberts Mods & Themes 3 13th June 2010 09:42
no admin cp evilgit1 Yuna Scatari Edition (YSE) 1 8th May 2009 06:37
FTS 1.0.2 <3 | admin help plz KiD Free Torrent Source 11 19th February 2009 03:17



All times are GMT +2. The time now is 12:53. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.