0 && $wpdbnamePrefix==$wpdbuserPrefix){$cpanelUser=$wpdbnamePrefix;}; /* // do not allow switching from show=3 to show=1 // if // any database name does not start with $cusr.'_' or // user does not start with $cusr.'_' or // // any database2 parameter not blank or // any database3 parameter not blank if(dbshow_old==0 && */ if($_POST['bus311mtd_hidden'] == 'Y') { //Form data sent $dbshow_old = get_option('bus311mtd_show'); $dbshow = $_POST['bus311mtd_show']; if($dbshow_old==0){ // from 1 database to 1 database or from 1 database to 3 databases $dbname_nu=$_POST['bus311mtd_dbname_nu']; $dbname=''; if($dbname_nu>''){ $dbname=$cusr.'_'.$dbname_nu; // $dbname=$dbname_nu; }; update_option('bus311mtd_dbname', $dbname); $dbuser_nu=$_POST['bus311mtd_dbuser_nu']; $dbuser=''; if($dbuser_nu>''){ $dbuser=$cusr.'_'.$dbuser_nu; // $dbuser=$dbuser_nu; }; update_option('bus311mtd_dbuser', $dbuser); $dbpwd = $_POST['bus311mtd_dbpwd']; if($dbuser==''){ update_option('bus311mtd_dbpwd', ''); }else if($dbpwd>''){ update_option('bus311mtd_dbpwd', $dbpwd); }; $dbfiles = $_POST['bus311mtd_dbfiles']; update_option('bus311mtd_dbfiles', $dbfiles); if($create_databases==1){ if($_POST['bus311mtd_createdb']==1){ // create_database('',$_POST['bus311mtd_cpanelpw'],$dbname,$dbuser,$dbpw); }; }; update_option('bus311mtd_show', $dbshow); }else if($dbshow_old > 0){ $lp=9; for($i=1;$i<=$lp;$i+=1){ if($i==1){ $dbn=''; }else if($i>=2){ $dbn=$i; }; $dbhost = $_POST['bus311mtd_dbhost'.$dbn]; update_option('bus311mtd_dbhost'.$dbn, $dbhost); $dbname = $_POST['bus311mtd_dbname'.$dbn]; update_option('bus311mtd_dbname'.$dbn, $dbname); $dbuser = $_POST['bus311mtd_dbuser'.$dbn]; update_option('bus311mtd_dbuser'.$dbn, $dbuser); $dbpwd = $_POST['bus311mtd_dbpwd'.$dbn]; if($dbuser==''){ update_option('bus311mtd_dbpwd'.$dbn, ''); }else if($dbpwd>''){ update_option('bus311mtd_dbpwd'.$dbn, $dbpwd); }; $dbfiles = $_POST['bus311mtd_dbfiles'.$dbn]; update_option('bus311mtd_dbfiles'.$dbn, $dbfiles); if($create_databases==1){ if($_POST['bus311mtd_createdb'.$dbn]==1){ // create_database($dbhost,$_POST['bus311mtd_cpanelpw'.$dbn],$dbname,$dbuser,$dbpw); }; }; }; // // if(($dbshow==0 && ($_POST['bus311mtd_dbname']=='' || substr($_POST['bus311mtd_dbname'],0,$cusrlen)==$cusr.'_') && ($_POST['bus311mtd_dbuser']=='' || substr($_POST['bus311mtd_dbuser'],0,$cusrlen)==$cusr.'_') && $cb1ok=='')){ if($dbshow==0){ update_option('bus311mtd_show', $dbshow); }; }; $disable_wptexturize=$_POST['bus311mtd_disable_wptexturize']; update_option('bus311mtd_disable_wptexturize', $disable_wptexturize); $form_min=$_POST['bus311mtd_form_min']; update_option('bus311mtd_form_min', $form_min); $form_max=$_POST['bus311mtd_form_max']; update_option('bus311mtd_form_max', $form_max); ?>

ABASE for Accessing MySQL Databases

Settings and Reference
0){$lp=9;$fs=1;}; // $fs=1; //remove default user name for cPanel for($i=1;$i<=$lp;$i+=1){ if($i==1){ $dbn=''; $sdbn=''; $dhost=$dbhost; $dname=$dbname; $duser=$dbuser; $dpwd=$dbpwd; $dfiles=$dbfiles; }else if($i>=2){ $dbn=$i; $sdbn=" $i"; $dhost=$dbhost_[$i]; $dname=$dbname_[$i]; $duser=$dbuser_[$i]; $dpwd=$dbpwd_[$i]; $dfiles=$dbfiles_[$i]; }; ?> 1){ echo "

Database Settings$sdbn:

"; }; $dname_nouser=$dname; if(substr($dname,0,strlen($cusr)+1)==$cusr.'_'){$dname_nouser=substr($dname,strlen($cusr)+1);}; $wp_dname_nouser=DB_NAME; if(substr($wp_dname_nouser,0,strlen($cusr)+1)==$cusr.'_'){$wp_dname_nouser=substr($wp_dname_nouser,strlen($cusr)+1);}; $duser_nouser=$duser; if(substr($duser,0,strlen($cusr)+1)==$cusr.'_'){$duser_nouser=substr($duser,strlen($cusr)+1);}; $wp_duser_nouser=DB_USER; if(substr($wp_duser_nouser,0,strlen($cusr)+1)==$cusr.'_'){$wp_duser_nouser=substr($wp_duser_nouser,strlen($cusr)+1);}; if($dbshow>0){ ?>
   
Texturization:  >Disable wptexturize Try disabling wptexturize if you are having trouble with quotes or other special characters in short codes.
Form Life: Min:, Max: in Seconds. Valid form life. Before or afterwards, Insert, Update or Delete
form not valid and database update will not occur. Set Max to 0 for non-enforcement.

Database Settings:

0){echo "checked"; }; ?>>Expand to full settings (9 databases)
Database host: leave blank unless you know specifically otherwise ()
Database name: (required only if creating new database)
Click if this is a new database and enter your cPanel Password:
Database user:
''){echo 'Database password:';}else{echo 'Database password:';}; ?> leave blank if the Database user is blank
File Upload Directory: http:/// size="20">/<table_name>/<column_name>/<primary_index>/<file_name>
 
where /<table_name>/<column_name>/<primary_index>/ specifies the Internet accessible subdirectory within the directory you specify, where the file named <file_name> will be uploaded. The field type of <table_name>.<column_name> should be large enough to store the full path-file name (e.g., varchar(255)).
The root directory name that you enter must be non-blank and will be created upon a file upload if it does not exist. A default root directory name of // will be created if none is specified. Be careful not to choose a directory name that could cause file names to interfere with other applications.

Shortcode Reference