Warning
Safe mode is active on this server.
This means archiving of newsletters and also sending of newsletters is affected.
Archiving will not work unless the hosting company changes ownerships of the archive/index_list.php file.
Newsletters will bounce back to the person sending the newsletter, not to the "Return-Path" address specified.
See http://www.php.net/features.safe-mode and
http://www.php.net/manual/en/features.safe-mode.functions.php for technical reasons.

'; } // Database box $FORM_ITEMS[$FORM_REQUIRED_ITEM . "MySQL Server"] = "textfield|MySQLServer:100:44:" . str_replace(':', '$$COLON$$', $DBHOST); $HELP_ITEMS["MySQLServer"]["Title"] = "MySQL Server"; $HELP_ITEMS["MySQLServer"]["Content"] = "MySQL server I.P. address/hostname, such as \'localhost\'"; $FORM_ITEMS[$FORM_REQUIRED_ITEM . "MySQL Username"] = "textfield|MySQLUsername:100:44:" . str_replace(':', '$$COLON$$', $DBUSER); $HELP_ITEMS["MySQLUsername"]["Title"] = "MySQL Server"; $HELP_ITEMS["MySQLUsername"]["Content"] = "Username for a valid MySQL account, such as \'admin\'"; $FORM_ITEMS[$FORM_NOT_REQUIRED_ITEM . "MySQL Password"] = "password|MySQLPassword:100:44:" . str_replace(':', '$$COLON$$', $DBPASS) . ":0"; $HELP_ITEMS["MySQLPassword"]["Title"] = "MySQL Password"; $HELP_ITEMS["MySQLPassword"]["Content"] = "Password for a valid MySQL account, such as \'mypassword\'"; $FORM_ITEMS[$FORM_REQUIRED_ITEM . "MySQL Database"] = "textfield|MySQLDatabase:100:44:" . str_replace(':', '$$COLON$$', $DBNAME); $HELP_ITEMS["MySQLDatabase"]["Title"] = "MySQL Database"; $HELP_ITEMS["MySQLDatabase"]["Content"] = "MySQL database name where SendStudio information will be saved, such as \'mydatabase\'"; $FORM_ITEMS[$FORM_NOT_REQUIRED_ITEM . "Table Prefix"] = "textfield|TablePrefix:100:44:" . $TABLEPREFIX; $HELP_ITEMS["TablePrefix"]["Title"] = "Table Prefix"; $HELP_ITEMS["TablePrefix"]["Content"] = "Optional text to be prepended to all table names, such as \'ss_\'"; $FORM = new AdminForm; $FORM->title = "Install1_1"; $FORM->items = $FORM_ITEMS; $FORM->dontCloseForm = true; $FORM->action = MakeAdminLink("index?Page=Settings&Step=2"); $FORM->MakeForm("MySQL Database Details"); // Directories box $FORM2_ITEMS[$FORM_REQUIRED_ITEM . "SendStudio Path"] = "textfield|SendStudioPath:100:44:" . str_replace(":", ":", $ROOTURL); $HELP_ITEMS["SendStudioPath"]["Title"] = "SendStudio Path"; $HELP_ITEMS["SendStudioPath"]["Content"] = "The full URL to the main SendStudio directory, such as \'http://www.mysite.com/sendstudio/\'. Make sure you include a trailing forwardslash. The install script has tried to guess this URL for you, however it may fail."; $FORM2_ITEMS[$FORM_REQUIRED_ITEM . "Root Directory"] = "textfield|SendStudioRoot:100:44:" . str_replace(':', '$$COLON$$', $ROOTDIR); $HELP_ITEMS["SendStudioRoot"]["Title"] = "SendStudio Root Directory"; $HELP_ITEMS["SendStudioRoot"]["Content"] = "The full root-relative path to the main SendStudio directory, such as \'/htdocs/www/sendstudio/\'. Make sure you include a trailing forwardslash."; $FORM2 = new AdminForm; $FORM2->title = "Install1_2"; $FORM2->items = $FORM2_ITEMS; $FORM2->action = "DEADLINK"; $FORM2->MakeForm("SendStudio Directories"); $FORM3_ITEMS[-2]="hidden|OldLicenseKey:$LicenseKey"; $FORM3_ITEMS[$FORM_REQUIRED_ITEM . "License Key"] = "textfield|LicenseKey:100:44:" . $LicenseKey; $HELP_ITEMS["LicenseKey"]["Title"] = "License Key"; $HELP_ITEMS["LicenseKey"]["Content"] = "The license key that was emailed to you when you ordered or upgraded."; $FORM3 = new AdminForm; $FORM3->title = "Install1_3"; $FORM3->items = $FORM3_ITEMS; $FORM3->action = "DEADLINK"; $FORM3->MakeForm("SendStudio License Key"); $sel = ($ShowInfoTips == 1 ? "CHECKED" : ""); $FORM4_ITEMS["Show Info Tips"] = "checkbox|ShowInfoTips:1:Yes, show info tips :" . $sel; $HELP_ITEMS["ShowInfoTips"]["Title"] = "Show Info Tips"; $HELP_ITEMS["ShowInfoTips"]["Content"] = "If ticked, SendStudio will show a random email marketing tip across of the top of the control panel."; $sel1 = ($AutoArchive == 1 ? "CHECKED" : ""); $FORM4_ITEMS["Auto Archive Content"] = "checkbox|AutoArchive:1:Yes, auto archive content :" . $sel1; $HELP_ITEMS["AutoArchive"]["Title"] = "Auto Archive Content"; $HELP_ITEMS["AutoArchive"]["Content"] = "If ticked, SendStudio will save a copy of each newsletter sent to the /sendstudio/archive folder automatically."; $sel = ((isset($ServerSending) && $ServerSending == 1) ? "CHECKED" : ""); $FORM4_ITEMS["Send Emails via Cron"] = "checkbox|ServerSending:1:Yes, send emails via cron :" . $sel . ":onchange=\"CronAlert(this);\""; $HELP_ITEMS["ServerSending"]["Title"] = "Send emails via cron"; $HELP_ITEMS["ServerSending"]["Content"] = "If ticked, SendStudio will send the emails via cron instead of through the popup window.

This is required to schedule sending of newsletters and autoresponders.

If you are unsure of how to setup cron on your server, please see the documentation or contact your administrator"; $FORM4 = new AdminForm; $FORM4->title = "Install1_4"; $FORM4->items = $FORM4_ITEMS; $FORM4->action = "DEADLINK"; $FORM4->MakeForm("Miscellaneous Settings"); $FORM5_ITEMS["Test Email"]="textfield|TestEmail:100:44::0:"; $HELP_ITEMS["TestEmail"]["Title"] = "Test Email"; $HELP_ITEMS["TestEmail"]["Content"] = "To test the SendStudio sending system, enter your email address here. If SendStudio can send emails, a sample email will be sent to this email address when you click on the \'Test Sending System\' button."; $FORM5_ITEMS[-1]="submit|Save:1-index|once"; $FORM5 = new AdminForm; $FORM5->title = "Install1_5"; $FORM5->items = $FORM5_ITEMS; $FORM5->action = "DEADLINK"; $FORM5->MakeForm("Test Sending System"); $FORM->output = "Complete the form below to update your SendStudio settings. Click on the \"Save\" button at the bottom of the page to continue.
Fields marked with an asterix (*) are required.
" . $FORM->output . "
" . $FORM2->output . "
" . $FORM3->output . "
" . $FORM4->output . "
" . $FORM5->output; $OUTPUT .= MakeBox("SendStudio Settings", $FORM->output); $OUTPUT .= ""; $OUTPUT .= ' '; } else if($Step == 2) { // Include the MySQL schema file include("includes/schema.php"); // Escape all of the request variables foreach($_REQUEST as $k => $v) { $_REQUEST[$k] = str_replace("$", "\\$", $v); } $MySQLServer = stripslashes($_REQUEST['MySQLServer']); $MySQLUsername = stripslashes($_REQUEST['MySQLUsername']); $MySQLPassword = stripslashes($_REQUEST['MySQLPassword']); $MySQLDatabase = stripslashes($_REQUEST['MySQLDatabase']); $TablePrefix = stripslashes($_REQUEST['TablePrefix']); $SendStudioPath = stripslashes($_REQUEST['SendStudioPath']); $SendStudioRoot = stripslashes($_REQUEST['SendStudioRoot']); $LicenseKey = stripslashes($_REQUEST['LicenseKey']); $OldLicenseKey = stripslashes($_REQUEST['OldLicenseKey']); $ShowInfoTips = (isset($_REQUEST['ShowInfoTips'])) ? (int)$_REQUEST['ShowInfoTips'] : 0; $AutoArchive = (isset($_REQUEST['AutoArchive'])) ? (int)$_REQUEST['AutoArchive'] : 0; $ServerSending = (isset($_REQUEST['ServerSending'])) ? (int)$_REQUEST['ServerSending'] : 0; // Firstly, is the config file writable? if(!is_writable("../includes/config.inc.php")) { // Config file isn't writable $OUTPUT .= MakeErrorBox("Config File Unwritable", "
The \"" . $SendStudioRoot . "includes/config.inc.php\" file is not writable. Please CHMOD this file to 757 and then click on the \"Try Again\" button below."); } else { // Now write out the config file if(!$fp = fopen("../includes/config.inc.php", "wb")) { // Couldn't open the config file $OUTPUT .= MakeErrorBox("Couldn't Open Config File", "
The \"" . $SendStudioRoot . "includes/config.inc.php\" file couldn't be opened. Please make sure that it exists and then click on the \"Try Again\" button below."); } else { // The config file was opened OK, let's write to it $configData = ""; // Can we write to the config file? if(fputs($fp, $configData)) { // Close the config file fclose($fp); if($OldLicenseKey != $LicenseKey) { header("location:index.php?Page=Logout"); die(); } else { $OUTPUT .= MakeSuccessBox("SendStudio Settings Updated", "Your SendStudio settings have been updated successfully.", MakeAdminLink("index")); } } } } } ?>