Raised This Month: $51 Target: $400
 12% 

Amxbans: Admin Area


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-24-2015 , 16:42   Amxbans: Admin Area
Reply With Quote #1

Amxbans admin area loads really slow. It takes like a good 10 secs at least before it loads up. Is there any fix to it? Here is the admin.php for reference.

PHP Code:
<?php
session_start
();
if( 
$_SESSION['level'] == NULL || !$_SESSION['loggedin']==true) {
    
header("Location: index.php"); 
    exit();
}

require_once(
"include/config.inc.php");
require_once(
"include/access.inc.php");
require_once(
"include/menu.inc.php");
require_once(
"include/logfunc.inc.php");
require_once(
"include/functions.inc.php");
require_once(
"include/sql.inc.php");

if(!
$_SESSION["loggedin"]) {
    
header("Location:index.php");
}

$site_start        "so_in"//Admin Start Page

//Seiten Verwaltung         wm_ms
//UserLevel Verwaltung         wm_ul
//Webadmin Verwaltung         wm_wa
//AMXX Admin Verwaltung     sm_av
//Server Verwaltung         sm_sv
//Server Admins Verwaltung     sm_sa
//ban reasons verwaltung     sm_bg
//server info        so_in

$admin_site    "default";
$user_msg "";

$smarty = new dynamicPage;

//modul page loader
if(isset($_GET["modul"])) {
    
$modul=basename($_GET["modul"]);
}else{
    
$modul=basename("");
}

$modul_exists "";
if(isset(
$_GET["modul"]) && file_exists("include/modules/modul_".$modul.".php")) {
    include(
"include/modules/modul_".$modul.".php");
    
$modul_exists=1;
    
}
//admin page loader
if(isset($_GET["site"])) {
    
$site=basename($_GET["site"]);
}else{
    
$site=basename("");
}
if(!
$modul_exists) {
    if(isset(
$_GET["site"]) && file_exists("include/admin/admin_".$site.".php")) {
        include(
"include/admin/admin_".$site.".php");
        
$smarty->assign("menu_pos",$site);
    } else {
        include(
"include/admin/admin_".$site_start.".php");
        
$smarty->assign("menu_pos",$site_start);
    }
}

//get module menu (only active)
$modules_menu_count=0;
$modules_menu=sql_get_modules(1,$modules_menu_count);

// Template generieren
$smarty->assign("meta","");
$smarty->assign("title",$title2);
$smarty->assign("version_web",$config->v_web);
$smarty->assign("banner",$config->banner);
$smarty->assign("banner_url",$config->banner_url);
if(
file_exists("templates/".$config->design."/main_header.tpl")) {
    
$smarty->assign("design",$config->design);
}
$smarty->assign("dir",$config->document_root);
$smarty->assign("current_lang",$config->default_lang);
$smarty->assign("this",$_SERVER['PHP_SELF']);
$smarty->assign("menu",$menu);
$smarty->assign("modules_menu",$modules_menu);
$smarty->assign("modules_menu_count",$modules_menu_count);
$smarty->assign("msg",$user_msg);
if(
$modul_exists==1) {
    
$smarty->assign("site",$modul_site);
    
$smarty->assign("menu_pos",$modul);
} else {
    
$smarty->assign("site",$admin_site);
}

$smarty->display('main_header.tpl');
$smarty->display('admin_index.tpl');
if(
$modul_exists==1) {
    
$smarty->display('modul_'.$modul_site.'.tpl');
} else {
    
$smarty->display('admin_'.$admin_site.'.tpl');
}
$smarty->display('main_footer.tpl');


?>
__________________
Spirit_12 is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 08-29-2015 , 12:15   Re: Amxbans: Admin Area
Reply With Quote #2

You got bad internet or just a generally slow computer.
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-29-2015 , 16:50   Re: Amxbans: Admin Area
Reply With Quote #3

Quote:
Originally Posted by SkumTomteN View Post
You got bad internet or just a generally slow computer.
Was that an attempt at some kind of a joke? I got i7 extreme and good enough internet.
__________________
Spirit_12 is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 08-29-2015 , 22:05   Re: Amxbans: Admin Area
Reply With Quote #4

Here you go

Please let me know if its working perfect, just had to delete junks outta there
__________________

Last edited by botz; 09-27-2015 at 18:53.
botz is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 08-30-2015 , 13:31   Re: Amxbans: Admin Area
Reply With Quote #5

Quote:
Originally Posted by Spirit_12 View Post
Was that an attempt at some kind of a joke? I got i7 extreme and good enough internet.
no it wasnt, i can access it just fine in 1 sec with 1 mbit up, and 0.5 down.

So i got the shitty internet here, thats why i was wondering lol.
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 08-30-2015 , 13:50   Re: Amxbans: Admin Area
Reply With Quote #6

GM 1.6 bans arent yet updated, got some bugs in web and in plugins, we have to fix them manually, by editing codes.
Gm 1.6 have more bugs such as Static ban time, even if you add your all admins to static ban time, it will make some to NO automatically, which i have fixed.
Gm 1.6 got expired bans fix, so if you unban someone it goes away from banlist u have to search and get them or if the ban expires you still have to search that ban but u cant find it in list, i have fixed it

There are some more bugs which i have fixed for my own ban list but i dont remember more.

Also Normal AMXBans dont have those bugs, so for now i recommend people who dont have fixes to use that.
__________________
botz is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-30-2015 , 14:03   Re: Amxbans: Admin Area
Reply With Quote #7

Plagiarism at its best right here.
__________________
Spirit_12 is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 08-30-2015 , 14:14   Re: Amxbans: Admin Area
Reply With Quote #8

wow, just wow. Misi is the one who helped me with some codes for slow admin area, he is one of a great coder in my community, well you dont know how to thank so just forget it kid, also forget asking for help, if you dont know how to respect someone when they help u
__________________

Last edited by botz; 08-30-2015 at 14:23.
botz is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-30-2015 , 18:09   Re: Amxbans: Admin Area
Reply With Quote #9

Quote:
Originally Posted by botz View Post
wow, just wow. Misi is the one who helped me with some codes for slow admin area, he is one of a great coder in my community, well you dont know how to thank so just forget it kid, also forget asking for help, if you dont know how to respect someone when they help u
Misi might be a good coder. You should have gave credit to him, instead of saying "I" in every sentence. Last I checked, you didn't even knew how to install it. Let alone fix the bugs.

Good luck commenting here, and making yourself look good. I'm done here.
__________________
Spirit_12 is offline
botz
AlliedModders Donor
Join Date: Jan 2015
Old 08-30-2015 , 19:23   Re: Amxbans: Admin Area
Reply With Quote #10

There is a difference before and now, it was like alot months ago when i didnt know, well now i do.
Also when the hell did i say i did slow admin area fix, i said i did static ban time fix + expired bans..
read what i said, first then reply kid, asking for help then trying to make the helper look bad.
No one should ever help a kid like you
__________________

Last edited by botz; 08-30-2015 at 20:10.
botz is offline
Reply



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


All times are GMT -4. The time now is 11:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode