________________________________________________________________________________________________________
پيدا كنيد در includes/functions_online.php:
________________________________________________________________________________________________________
default:
if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)
{
اين رو بالاش اضافه كنيد:
// ###### ELITECODERS DOWNLOAD HACK ######
case 'downloads':
$userinfo['action'] = 'Downloading';
$userinfo['where'] = "<a href=\"downloads.php\">$vboptions[bbtitle] Downloads</a>";
break;
// ###### ELITECODERS DOWNLOAD HACK ######
________________________________________________________________________________________________________
پيدا كنيد در includes/functions_online.php:
________________________________________________________________________________________________________
default:
$userinfo['activity'] = 'unknown';
}
اين رو بالاش اضافه كنيد:
// ###### ELITECODERS DOWNLOAD HACK ######
case 'downloads.php':
$userinfo['activity'] = 'downloads';
break;
// ###### ELITECODERS DOWNLOAD HACK ######
________________________________________________________________________________________________________
پيدا كنيد در admincp/index.php:
________________________________________________________________________________________________________
if (can_administer('canadminsettings'))
{
$printhr = true;
construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');
if ($debug == 1)
{
construct_nav_option($vbphrase['admin_help_manager'], 'help.php?do=manage&script=NOSCRIPT');
}
construct_nav_group($vbphrase['vbulletin_options'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
اين رو زيرش اضافه كنيد:
// ###### ELITECODERS DOWNLOAD HACK ######
construct_nav_option("Settings", 'downloadadmin.php?do=settings', '<br />');
construct_nav_option("Categories", 'downloadadmin.php?do=category', '<br />');
construct_nav_group("Downloads", '<hr />');
// ###### ELITECODERS DOWNLOAD HACK ######
________________________________________________________________________________________________________
پيدا كنيد در admincp/usergroup.php:
________________________________________________________________________________________________________
print_table_header($vbphrase['forum_viewing_permissions']);
print_yes_no_row($vbphrase['can_view_board'], 'usergroup[canview]', $ug_bitfield['canview']);
print_yes_no_row($vbphrase['can_view_others_threads'], 'usergroup[canviewothers]', $ug_bitfield['canviewothers']);
print_yes_no_row($vbphrase['can_see_deletion_notices'], 'usergroup[canseedelnotice]', $ug_bitfield['canseedelnotice']);
print_yes_no_row($vbphrase['can_search_forums'], 'usergroup[cansearch]', $ug_bitfield['cansearch']);
print_yes_no_row($vbphrase['can_use_email_to_friend'], 'usergroup[canemail]', $ug_bitfield['canemail']);
print_yes_no_row($vbphrase['can_download_attachments'], 'usergroup[cangetattachment]', $ug_bitfield['cangetattachment']);
print_table_break();
print_column_style_code(array('width: 70%', 'width: 30%'));
اين رو بالاش اضافه كنيد:
// ###### ELITECODERS DOWNLOAD HACK ######
print_table_header("Download Permissions");
print_yes_no_row("Can Download Files? <dfn>Allows usergroup to download from the downloads section</dfn>", 'usergroup[candownloadfiles]', $ug_bitfield['candownloadfiles']);
print_yes_no_row("Can Upload Files? <dfn>Allows usergroup to upload files to the downloads section</dfn>", 'usergroup[canuploadfiles]', $ug_bitfield['canuploadfiles']);
print_yes_no_row("Can Rate Files? <dfn>Allows usergroup to rate files</dfn>", 'usergroup[canratefiles]', $ug_bitfield['canratefiles']);
print_yes_no_row("Can Edit Own Files? <dfn>Allows usergroup to edit their own approved files</dfn>", 'usergroup[caneditownfiles]', $ug_bitfield['caneditownfiles']);
print_yes_no_row("Can Manage Files?<dfn>Allows usergroup to manage files in the downloads section<br>Set individual permissions below...</dfn>", 'usergroup[canmanagefiles]', $ug_bitfield['canmanagefiles']);
print_table_break();
// ###### ELITECODERS DOWNLOAD HACK ######
________________________________________________________________________________________________________
پيدا كنيد در includes/db_mysql.php:
________________________________________________________________________________________________________
function fetch_array($query_id, $type = DBARRAY_ASSOC)
{
// retrieve row
return @mysql_fetch_array($query_id, $type);
}
اين رو زيرش اضافه كنيد:
// ELITECODERS
function fetch_result($query_id, $field = 0)
{
// retrieve field
return @mysql_result($query_id, $field);
}
________________________________________________________________________________________________________
پيدا كنيد در includes/db_mysql.php:
________________________________________________________________________________________________________
function query_first($query_string, $type = DBARRAY_ASSOC)
{
// does a query and returns first row
$query_id = $this->query($query_string);
$returnarray = $this->fetch_array($query_id, $type);
$this->free_result($query_id);
$this->lastquery = $query_string;
return $returnarray;
}
اين رو زيرش اضافه كنيد:
// ELITECODERS
function query_result($query_string, $type = DBARRAY_ASSOC)
{
// does a query and returns first value
$query_id = $this->query($query_string);
$returnvalue = $this->fetch_result($query_id);
$this->free_result($query_id);
$this->lastquery = $query_string;
return $returnvalue;
}
________________________________________________________________________________________________________
پيدا كنيد در includes/adminfunctions_template.php:
________________________________________________________________________________________________________
'subscription' => $vbphrase['group_paid_subscriptions'],
اين رو زيرش اضافه كنيد:
'downloads' => 'Downloads',
شما براي ويرايش اين فايلها به نرم افزارهاي اديتور احتياج داريد.
از اينجا بگيريد.
http://www.emeditor.com/pub/emed4131epx.exe