function connectRemote() { return Sql_Connect($_POST['remote_host'], $_POST['remote_user'], $_POST['remote_password'], $_POST['remote_database']); }
function connectRemote() { return Sql_Connect($_POST["remote_host"], $_POST["remote_user"], $_POST["remote_password"], $_POST["remote_database"]); }
if (!isset($_GET["pi"])) { $_GET["pi"] = ""; } # make sure magic quotes are on. Try to switch it on, this may fail ini_set("magic_quotes_gpc", "on"); $GLOBALS["img_tick"] = '<img src="images/tick.gif" alt="Yes">'; $GLOBALS["img_cross"] = '<img src="images/cross.gif" alt="No">'; # if keys need expanding with 0-s $checkboxgroup_storesize = 1; # this will allow 10000 options for checkboxes # identify pages that can be run on commandline $commandline_pages = array("send", "processqueue", "processbounces", "getrss"); if (isset($message_envelope)) { $envelope = "-f{$message_envelope}"; } $database_connection = Sql_Connect($database_host, $database_user, $database_password, $database_name); if (!empty($GLOBALS["SessionTableName"])) { include_once dirname(__FILE__) . "/sessionlib.php"; } if (!isset($table_prefix)) { $table_prefix = ""; } if (!isset($usertable_prefix)) { $usertable_prefix = $table_prefix; } $tables = array("user" => $usertable_prefix . "user", "user_history" => $usertable_prefix . "user_history", "list" => $table_prefix . "list", "listuser" => $table_prefix . "listuser", "user_blacklist" => $table_prefix . "user_blacklist", "user_blacklist_data" => $table_prefix . "user_blacklist_data", "message" => $table_prefix . "message", "messagedata" => $table_prefix . "messagedata", "listmessage" => $table_prefix . "listmessage", "usermessage" => $table_prefix . "usermessage", "attribute" => $usertable_prefix . "attribute", "user_attribute" => $usertable_prefix . "user_attribute", "sendprocess" => $table_prefix . "sendprocess", "template" => $table_prefix . "template", "templateimage" => $table_prefix . "templateimage", "bounce" => $table_prefix . "bounce", "user_message_bounce" => $table_prefix . "user_message_bounce", "user_message_forward" => $table_prefix . 'user_message_forward', "config" => $table_prefix . "config", "admin" => $table_prefix . "admin", "adminattribute" => $table_prefix . "adminattribute", "admin_attribute" => $table_prefix . "admin_attribute", "admin_task" => $table_prefix . "admin_task", "task" => $table_prefix . "task", "subscribepage" => $table_prefix . "subscribepage", "subscribepage_data" => $table_prefix . "subscribepage_data", "eventlog" => $table_prefix . "eventlog", "attachment" => $table_prefix . "attachment", "message_attachment" => $table_prefix . "message_attachment", "rssitem" => $table_prefix . "rssitem", "rssitem_data" => $table_prefix . "rssitem_data", "user_rss" => $table_prefix . "user_rss", "rssitem_user" => $table_prefix . "rssitem_user", "listrss" => $table_prefix . "listrss", "urlcache" => $table_prefix . "urlcache", 'linktrack' => $table_prefix . 'linktrack', 'linktrack_userclick' => $table_prefix . 'linktrack_userclick', 'userstats' => $table_prefix . 'userstats', 'bounceregex' => $table_prefix . 'bounceregex', 'bounceregex_bounce' => $table_prefix . 'bounceregex_bounce'); $domain = getConfig("domain"); $website = getConfig("website"); $xormask = getConfig('xormask'); if (!$xormask) { $xormask = md5(uniqid(rand(), true));