Good day.
And big thaks for your product. It's great =)
I trying integrate Adminer into vbulletin admincp.
And have some troubles.
Im using this code to initialize Adminer.
$_GET['username']='eg_developer';functionadminer_object() {global$vbulletin;classAdminerSoftwareextendsAdminer{var$registry=null;var$sameOrigin;functionAdminerSoftware(&$registry,$sameOrigin=false){$this->sameOrigin=$sameOrigin;if(is_object($registry)){$this->registry=&$registry;if(!is_object($registry->db)){trigger_error('Database object is not an object',E_USER_ERROR);}}else{trigger_error('Registry object is not an object',E_USER_ERROR);}}functionheaders() {if($this->sameOrigin){header("X-Frame-Options: SameOrigin");}header("X-XSS-Protection: 0");returnfalse;}functionpermanentLogin() {return"";}functioncredentials() {returnarray($this->registry->config['MasterServer']['servername'],$this->registry->config['MasterServer']['username'],$this->registry->config['MasterServer']['password']);}functiondatabase() {return$this->registry->config['Database']['dbname'];}functionlogin($login,$password){return($login=='eg_developer'&&$password=='');}}returnnewAdminerSoftware($vbulletin);}require_once"./includes/adminer-3.3.4-mysql-en.inc";
But i always got CSRF error. i suppose, that some of _POST variables sanitaize while in global.php of vbulletin. Because it included further.
And one more trouble. I cannot alter table. I always got error Incorrect table name '' SQL command
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good day.
And big thaks for your product. It's great =)
I trying integrate Adminer into vbulletin admincp.
And have some troubles.
Im using this code to initialize Adminer.
But i always got CSRF error. i suppose, that some of _POST variables sanitaize while in global.php of vbulletin. Because it included further.
And one more trouble. I cannot alter table. I always got error Incorrect table name '' SQL command
The code looks good. You are probably right that vBulletin alters some variables. Can you try it diagnose it yourself?