PHP needs write access to the directory which autosetup.php is in (and the directory $brandprefix is being installed to, if different). Since you're running a Microsoft Windows server that doesn't support chmod and is configured to run PHP under a different user than your FTP user, you need to contact your web host and ask them to give PHP's user write permissions to this directory.
The customer login you typed is incorrect. You need to type the same customer email and password which you use to login to the downloads area which you got this autosetup.php from.
";
$lang['dirused'] = "
You already have an index file at that location. If it's a $brandprefix install and you want to replace it, uninstall it first by visiting {DIRURL}/wsnadmin/uninstall.php.
";
$lang['prefixused'] = "
You already have a $brandprefix installation in that database using that tables prefix. If you want to replace it, uninstall it first by visiting wsnadmin/uninstall.php.
";
$lang['pleasechmod'] = "
Since your server runs PHP and FTP as different users, you must change the permissions on this directory to allow all users to read write and execute. You can right-click a folder and use the permissions menu option in cpanel's file manager, or set 777 in your FTP client. If you don't know how to do this, please request service (free) or ask your web host.
Installation could not complete. It seems the files could not be extracted at the requested installation location. Please select one of following ways to proceed:
This server is running a very old version of PHP. WSN can run on this version, but memory usage is not optimized for this version and use of this version has been known to cause up to 10 times the memory use of the same page on a current version of PHP. Keep this in mind and make sure the php.ini memory_limit is high -- at least 64M is recommended for the old version of PHP you're running.
";
$lang['oldphp5'] = "
$brandprefix requires PHP 5.3 or newer (PHP 7 recommended).
";
$lang['oldphp'] = "
$brandprefix requires PHP 5.3 or newer (PHP 7 recommended).
";
$lang['bug'] = "There was an issue with attempting to download the software, the $brandprefix downloads area seems to not be functioning properly. Please contact support.";
$lang['passtext'] = "optimal";
$lang['partialtext'] = "acceptable but not optimal";
$lang['failtext'] = "fail";
$lang['pagetitle'] = "Server Test";
$lang['bufftext'] = "Output buffering";
$lang['phptext'] = "PHP version";
$lang['mysqltext'] = "MySQL version";
$lang['mysqlbadlogin'] = "
The MySQL login username and password combo you typed were incorrect. Perhaps you've forgotten the prefix which goes before all the names you create.
";
$lang['mysqlbadserver'] = "
There's no MySQL server on the specified host. Please check the host name you typed.
";
$lang['oldmysql'] = "MySQL 4.1 or newer is required. You have {YOURVERSION}.";
$lang['mysqlworked'] = "
Access to the database was established. Everything is good.
";
$lang['mysqldbissue'] = "
The connection was established, but access to the database was denied. You've probably forgotten to grant the user access to the database in your hosting control panel.
";
$lang['gdtext'] = "GD";
$congratstext = "
This server meets all the recommendations.
";
$lang['toobadtext'] = "
Some changes need to be made before you can install $scriptname:
";
$lang['gdexplain'] = "If you know that you have ImageMagick available on your server, do not worry about not having GD -- you only need one or the other, not both. If you do not have ImageMagick, then you will need to install it before you can use the thumbnail and image editing features of $brandprefix Gallery. Most hosts should be willing to install ImageMagick on request if they do not already have it. If your host refuses, ImageMagick can also be installed on a shared account, it does not require root access as long as you have telnet access. Please see here for instructions.
";
$lang['bufferexplain'] = "Your PHP version seems to have output buffering disabled. Contact your web host to have it enabled.";
$lang['ifyouwishtext'] = "You also need MySQL, which requires access info to test. If you'd like to test MySQL to ensure your version is recent enough, type your connection data below:";
$lang['usuallylocal'] = "(usually localhost)";
$lang['hosttext'] = "Database Host";
$lang['usertext'] = "Database Username";
$lang['passwordtext'] = "Database Password";
$lang['dbnametext'] = "Database Name";
$lang['testtext'] = "Test MySQL Info";
$lang['nonethelesstext'] = "
Your server meets the minimum requirements for running $scriptname. Nonetheless, there are some issues you may want to take note of:
";
$lang['ftpexplain'] = "Your PHP install lacks the FTP extension, and is running PHP as a different user than your FTP user. This means any files/directories which you manually upload via FTP will have to be CHMODed manually, so for reliable operation you should avoid doing any manual uploads. It'd be simpler to use a host with suPHP or equivlant run-as-user functionality.";
$lang['gdrec'] = "Your PHP install lacks the GD extension. Unless you have ImageMagick you won't be able to do thumbnails or resizing of images, but everything else will be fine.";
$lang['runtimequotes'] = "magic_quotes_runtime needs to be off, as it is by default in PHP.";
$lang['urltext'] = "Remote URL functions";
$lang['urlexplain'] = "Your web host has disabled both fopen URL wrappers and CURL. This prevents your site from accessing the rest of the internet, thus disabling many important features. Disabled features will be greyed out on your switches page. You need to ask your web host to enable at least one of fopen URL wrappers or cURL in order to enjoy all options.";
$lang['firewallexplain'] = "Your web host has a firewall rule which is preventing the loading of data from the $brandprefix server. Please contact your web host and ask them to unblock webmastersite.net and wsnforum.com so that data can be retrieved from them with cURL or fopen url wrappers. Once they've done that, return here to continue.";
$lang['apachesafeexplain'] = "Your web host is running PHP in safe_mode without suPHP. This can interfere with automatic setup or automatic upgrades, disables a few features, and generally makes your life more a pain than it needs to be. It's recommended that you ask your host to disable safe_mode on your account. Remind them that safe_mode is depreciated and will be removed from PHP 6, openbasedir should be used instead. If this automatic setup fails, and you can't turn off safe_mode, you'll need to do a manual installation! To do a manual installation, download current.tar.gz, extract it on your hard drive and see readme.html within it for instructions.";
$lang['windowsexplain'] = "Windows IIS doesn't support URL rewriting by default. If you want the SEO advantages of rewriting you'll have to buy an IIS add-on product like ISAPI_Rewrite to enable the same functionality which Apache and Lightspeed users get free. If you're not terribly concerned about URL rewriting, forget this -- you don't have to use rewriting.";
$lang['gdmissingtext'] = "GD extension not installed";
$lang['executiontime'] = "Your host has set a maximum execution time of less than 20 seconds and disabled the ability to increase it. This might prevent automated setup/upgrades.";
$lang['maxexecutiontime'] = "Maximum Execution Time";
$lang['seconds'] = "seconds";
$lang['allowedmemory'] = "Allowed Memory";
$lang['memoryexplain'] = "$scriptname needs a memory limit of at least 64M (mainly so it can extract files for setup and updates). Please contact your web host to have them set memory_limit = 64M; in php.ini, or you may be able to set php_value memory_limit 64M yourself via your hosting control panel or in an .htaccess file depending on your hosting configuration... your host will be able to tell you how it works on their system.";
$lang['ftpdomanual'] = "Since the install location is the same as the FTP drop point, you'll have to manually chmod the directory to 777.";
$lang['ftppathmismatch'] = "The FTP path you specified doesn't end in the same directory as the install path you specified.";
$lang['badhost'] = "MySQL is not installed at {HOST}. Please ask your web host what your MySQL host name is.";
$lang['badmysqllogin'] = "The MySQL username and password you specified are invalid. Check if you've forgotten a prefix_ value on the username, or ask your web host what your MySQL login is.";
$lang['nodbaccess'] = "The MySQL login you specified does not have access to the database you specified. Either the database name is wrong (check if you forgot a prefix_ value) or you need to assign the user access to the database in your hosting control panel. You can ask $brandprefix support or your host to do this for you.";
$lang['softcat'] = "software categories";
$lang['counties'] = "USA counties by state";
$lang['states'] = "USA states";
$lang['countries'] = "world countries";
$lang['cities'] = "USA cities by county by state";
$lang['statecounties'] = "Counties of single state";
$lang['statecities'] = "Cities by county of single state";
$lang['businesscategories'] = "business categories";
$lang['businesscategoriesbystate'] = "business categories by state/province";
$lang['chmodmarkertext'] = "
Since your server runs PHP and FTP as different users, you must change the permissions on this directory to allow all users to read write and execute. You can right-click a folder and use the permissions menu option in cpanel's file manager, or set 777 in your FTP client. If you don't know how to do this, please request service (free) or ask your web host.
";
$lang['quotesruntime'] = "magic_quotes_runtime is enabled on this server. It must be disabled before anything can function properly.";
$lang['tryanyway'] = "Try to Install Anyway";
$lang['hostingrecs'] = "If you need new web hosting, the following hosts have been verified and can meet all requirements and recommendations (and the affliate links support WSN development):
DreamHost, Host Gator, Liquid Web, Future Hosting, Site Ground.";
$lang['nosuphp'] = "Your server's PHP install is configured so that PHP-created files and FTP-uploaded files have different owners and cannot be modified from the other without 777 permissions. As a result, if you ever upload anything via FTP then permissions can become a mess.";
$lang['nopermissionforseries'] = "Your customer account doesn't have permission to download the series you selected. Please purchase access.";
$lang['maxpost'] = "post_max_size";
$lang['maxupload'] = "upload_max_filesize";
$lang['lowpost'] = "Your web host's php.ini file has a low limit set for post_max_size. You will not be able to upload files larger than this limit. If you plan to host videos or other large user-contributed files you'll need to increase the limit.";
$lang['lowupload'] = "Your web host's php.ini file has a low limit set for upload_max_filesize. You will not be able to upload files larger than this limit. If you plan to host videos or other large user-contributed files you'll need to increase the limit.";
$lang['localurltext'] = "Local URL functions";
$lang['localurlexplain'] = "Something -- probably a firewall rule -- prevents the server from accessing URLs on your own site.";
$lang['needsmanualupload'] = "Since this web host doesn't allow scripts to access the rest of the internet, or at least is unable to contact https://www.webmastersite.net, you will only be able to install the version bundled in this file. That means you can't change the script or series selections nor select a testing release nor load any data. Please ask your web host to resolve the problem.";
$lang['totallylobotomizedhost'] = "This web host has disabled the ability to use most basic core PHP functions, such as mkdir for creating a new directory. You will need to switch to a web host that fully supports PHP. There are thousands of good hosts, Dream Host is a popular one that exceeds all $brandprefix recommendations.";
$lang['baddownload'] = "There seems to be a problem with the download, please contact support.";
$lang['mbtext'] = 'mbstring extension';
$lang['mbexplain'] = "The geolocation feature requires PHP's mbstring extension, which this server lacks. You can still install $scriptname, but can't load the geolocation data -- that checkbox has been disabled. Display of national flags also requires mbstring but is normally only done with geolocation anyway.";
$lang['scriptcat'] = "web scripts categories";
$lang['modsecproblem'] = "This web server appears to be running Apache mod_security with a bad ruleset that will block listing submissions. When you try to submit a listing and get a 403 forbidden error or similar error code, you'll need to contact your web host and ask them to fix their mod_security rules. The standard ruleset that ships with mod_security works fine with WSN, but unfortunately many web hosts add their own poorly-tested rules.";
// End translation area
// Begin configuration area:
$darkcss = '
*, .borders
{
/* Default borders.*/
border-color: #222222;
}
BODY, SELECT, INPUT, TEXTAREA, .bx-wrapper .bx-viewport
{
/*Normal style for most spots.*/
background-color: {BGCOLOR};
color: #FFFFFF;
jqueryuitheme: \'dark-hive\';
}
.incomplete, .required, .alert, .incompleteblock
{
background-color: #331111;
}
.closed, .warning, .highhighttext, .searchhighlight, .icons, a.highlighttext, a.highlighttext:active, a.highlighttext:visited, a.highlighttext:hover, a.highlighttext:visited:hover
{
color: #AA0000;
}
.inactive, input:-moz-placeholder, .imtextself, a.bannedcolor, a.bannedcolor:visited
{
color: #777777;
background-color: #222222;
}
.activegradient, .categoryheader
{
color: #FFFFFF;
box-shadow: 0px 1px #222222;
text-shadow: 0px 1px #222244;
}
.pseudobuttons, .pseudobuttons:visited, a.biglink, a.biglink:visited, a.smalllink, a.smalllink:visited, .bigbutton, a.bigbutton, .editpost, .editpost:visited, .button, .submitbutton, .previewbutton, .gobutton
{
/* Generic large pseudobuttons.*/
background-color: #3F3F40;
color: #FFFFFF;
}
.selectedbutton, .selectedbutton:visited, .pseudobuttons:hover, .pseudobuttons:visited:hover, a.biglink:hover, a.biglink:visited:hover, a.smalllink:hover, a.smalllink:visited:hover, .button:hover, .gobutton:hover, .submitbutton:hover, .previewbutton:hover, .bigbutton:hover, .editpost:hover
{
background-color: #8F8F8F;
color: #000000;
}
.fresh, a.sponsorcolor:link, a.sponsorcolor:visited
{
color: #00AA00;
}
.altbackground, .sort, .link, .comment, .commentposter, .commentposteralternate, .commentalternate, .threadbottom, .statussection, .footer, .inout, .category, #activechatters, #chatarea, .profiletable td, .addtocart, .monthday, .homenav, .homenav:link, .homenav:visited, .redirect, .ratingresponse, .tab, .tab:visited, .smiliebox, .articlebar a, .navbutton, a.threadtools, .legend
{
/*Alternate background color used in listing bit, sort and other places.*/
background-color: #050505;
}
.altbg2, .labelscolumn, .oddcolumns, .oddrow, .internalreply, .quote, .code, .cite, .today, .todayevent, .tabactive, .tabactive:visited, .bulkprice, .price, .fronttop, a.selectedtool, a.selectedtool:visited, .threadtools:hover, .threadtools:visited:hover, .stripeme tr:nth-child(odd)
{
background-color: #26282A;
}
.altbg3, .optionscolumn, .evencolumns, .evenrow, .fronttopalt, .ckeditorbackground, .stripeme tr:nth-child(even)
{
background-color: #202224;
}
.inverse, .pollresultbar, .badge, .homenav:hover, .homenav:link:hover, .homenav:visited:hover, .addtocart:hover, .dayname td, .articlebar a:hover, .editpost:hover, .editpost:visited:hover, a.softtab, a.softtab:visited, a.softtab:visited:hover, a.softtab:hover, a.softtabactive, a.softtabactive:visited, a.softtabactive:hover, a.softtabactive:visited:hover, .boxtitle, .tableheader, th, .group, .topbar
{
/* Inverted color spots, usually mouseover effects.*/
background-color: #646464;
color: #000000;
}
.minorlinks, .subcat:visited, .linktools, .linktools a, .sections, .sections:visited, a.softtabactive, a.softtabactive:visited, a.softtabactive:hover, a.softtabactive:visited:hover, a.softtab:hover, a.softtab:visited:hover
{
color: #555555;
}
.minorlinks:hover, .details a:hover. .details a:visited:hover, .subcat:hover, .subcat:visited:hover
{
color: #223242;
}
.new { color: #22DD22; }
.old { color: #AAAAAA; }
input, select, button, textarea { border: 1px solid #555555; }
'; // style mods for dark themes here
if (isset($_REQUEST['filled'])) $javascript = '';
else if (!isset($_REQUEST['filled'])) $javascript = '
$(document).ready(function(){
$("#singlestate").hide(0);
$("[name=\'loaddata\']").change(function() {
if ($("[name=\'loaddata\']").val() == "statecounties" || $("[name=\'loaddata\']").val() == "statecities") $("#singlestate").show(200);
else $("#singlestate").hide(200);
});
if ($("input[name=installversion]:checked").val() == "full") $("#fullversion").show(); else $("#fullversion").hide();
if ($("#bootstrapthemeslider").length) $("#bootstrapthemeslider").bxSlider({ slideMargin: 4, infiniteLoop: true, pager: false, auto: false, slideWidth: 200, minSlides: 3, maxSlides: 5 });
$(".bootthemeimages").click(function() {
$(".bootthemeimages").css("border", "0px");
$(this).css("border", "3px solid #335588");
var bootthemename = $(this).attr("id");
$("input[name=\'bootstraptheme\']").val(bootthemename);
});
$("[name=\'series\']").change(function() {
});
$("input[name=\'scriptname\']").change(function() { scriptchange($("input[name=\'scriptname\']:checked").val()); });
scriptchange($("[name=\'initialscriptname\']").val());
$("input[name=\'thedbserver\']").change(function() { checkhost(); });
$("input[name=\'thedbpassword\']").change(function() { checkmysql(); });
$("input[name=\'thedbuser\']").change(function() { checkmysql(); });
$("input[name=\'thedbname\']").change(function() { checkmysql(); });
});
function checkhost()
{
var hostname = $("[name=thedbserver]").val();
$.post("'.$ourfilename.'",{ action: \'checkhost\', hostname: hostname },
function(xml)
{
if (xml != "") $("#hosterror").html(xml).removeClass("hideit");
else $("#hosterror").html("").addClass("hideit");
});
}
function checkmysql()
{
var hostname = $("[name=thedbserver]").val();
var password = $("[name=thedbpassword]").val();
var username = $("[name=thedbuser]").val();
var database = $("[name=thedbname]").val();
$.post("'.$ourfilename.'",{ action: \'checkmysql\', hostname: hostname, password: password, username: username, database: database },
function(xml)
{
if (xml != "") $("#mysqlerror").html(\' \'+xml).removeClass("hideit");
else $("#mysqlerror").html("").addClass("hideit");
});
}
function showorhide(id)
{
if (document.getElementById(id).style.display == "none") document.getElementById(id).style.display = "block";
else document.getElementById(id).style.display = "none";
}
function showdiv(id)
{
document.getElementById(id).style.display = "table-row";
document.getElementById(id).style.visibility = "visible";
document.getElementById(id).style.height = "100%";
}
function hidediv(id)
{
document.getElementById(id).style.display = "none";
document.getElementById(id).style.visibility = "hidden";
document.getElementById(id).style.height = 0;
}
function scriptchange(script)
{
var olddirurl = $("[name=dirurl]").val();
var brandedscript = script.replace(/wsn/, "'.$prefixbit.'");
$("[name=dirurl]").val(brandedscript + "_");
var newdirurl = olddirurl.replace(/'.$prefixbit.'[a-z]+/, brandedscript);
$("[name=dirurl]").val(newdirurl);
var oldprefix = $("[name=prefix]").val();
var newprefix = oldprefix.replace(/'.$prefixbit.'[a-z]+/, brandedscript);
$("[name=prefix]").val(newprefix);
var scriptpath = script;
if (script == "wsnsd") $("[name=loaddata]").html("");
else if (script == "wsnforum") $("[name=loaddata]").html("");
else $("[name=loaddata]").html("");
$("#configuration input[type=checkbox]").each(function(){ this.checked = false; });
$("#configurationrow").show(0);
if (script == "wsnlinks")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=reciplinks]").each(function(){ this.checked = true; });
$("input[value=websites]").each(function(){ this.checked = true; });
}
if (script == "wsngallery")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=youtube]").each(function(){ this.checked = true; });
$("input[value=expire]").each(function(){ this.checked = false; });
$("input[value=addresses]").each(function(){ this.checked = false; });
$("input[value=websites]").each(function(){ this.checked = false; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
}
if (script == "wsnkb")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=expire]").each(function(){ this.checked = false; });
$("input[value=addresses]").each(function(){ this.checked = false; });
$("input[value=websites]").each(function(){ this.checked = false; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
}
if (script == "wsnforum")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=prices]").each(function(){ this.checked = false; });
$("input[value=expire]").each(function(){ this.checked = false; });
$("input[value=addresses]").each(function(){ this.checked = false; });
$("input[value=websites]").each(function(){ this.checked = false; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
$("#configurationrow").hide(0);
}
if (script == "wsnclassifieds")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=prices]").each(function(){ this.checked = true; });
$("input[value=expire]").each(function(){ this.checked = true; });
$("input[value=addresses]").each(function(){ this.checked = true; });
$("input[value=websites]").each(function(){ this.checked = false; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
}
if (script == "wsnsd")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=prices]").each(function(){ this.checked = true; });
$("input[value=expire]").each(function(){ this.checked = true; });
$("input[value=addresses]").each(function(){ this.checked = false; });
$("input[value=websites]").each(function(){ this.checked = true; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
}
if (script == "wsndirectory")
{
$("input[value=community]").each(function(){ this.checked = true; });
$("input[value=addresses]").each(function(){ this.checked = true; });
$("input[value=websites]").each(function(){ this.checked = true; });
$("input[value=reciplinks]").each(function(){ this.checked = false; });
}
if (script == "wsnlinks" || script == "wsnclassifieds" || script == "wsnsd" || script == "wsndirectory") $(".linksclassifiedssddirectory").show(0); else $(".linksclassifiedssddirectory").hide(0);
if (script == "wsnlinks" || script == "wsnsd" || script == "wsndirectory") $(".linkssddirectory").show(0); else $(".linkssddirectory").hide(0);
if (script == "wsnlinks" || script == "wsnclassifieds" || script == "wsndirectory") $(".linksclassifiedsdirectory").show(0); else $(".linksclassifiedsdirectory").hide(0);
if (script != "wsnforum" || script == "wsnclassifieds") $(".linksgallerykbclassifiedssddirectory").show(0); else $(".linksgallerykbclassifiedssddirectory").hide(0);
if (script == "wsngallery") $(".gallery").show(0); else $(".gallery").hide(0);
}
';
$header = '
'.$brandprefix.' Setup
';
if ($translate) $header .= '