// generic error for when the real reason is not known
$arErrors[100][0] = "An unknown error has occurred with " . $sProductNameInformal . ". Please try this again.";
$arErrors[100][1] = "1";
// login error returned when a login or password is entered incorrectly while logging into the site
$arErrors[101][0] = "The password you typed is incorrect. Make sure your CAPS LOCK key is set correctly and then type your " . $sProductNameInformal . " password again.";
$arErrors[101][1] = "1";
// Remote Access could not load the Network Magic libraries. Chances are it is not running.
$arErrors[103][0] = "Cannot connect to " . $sParentProductNameInformal . ". Make sure " . $sProductNameInformal . " is installed and running. If you are a visitor, contact a member of the network for more information.";
$arErrors[103][1] = "0";
// A user's session has timed out and they have been returned to the login page.
$arErrors[104][0] = "Because there was no activity through your connection, you have been automatically signed out from " . $sProductNameInformal . ". Please sign in again.";
$arErrors[104][1] = "1";
// Cookies are disabled on the user's browser. This come up at login.
$arErrors[105][0] = "Before you use " . $sProductNameInformal . ", set up your Web browser to allow (accept) cookies. For steps in configuring this, see the Help for your browser. After you set up your browser, try using " . $sProductNameInformal . " again.";
$arErrors[105][1] = "0";
//Javascript is disabled on the user's browser. This comes up at login.
$arErrors[106][0] = "Before you use " . $sProductNameInformal . ", set up your Web browser to run JavaScript. For steps in configuring this, see the Help for your browser. After you set up your browser, try using " . $sProductNameInformal . " again.";
$arErrors[106][1] = "0";
// For logging only, not displayed to user - a user attempted to view a page w/o a session
$arErrors[107][0] = "User attempted to view page without a valid session.";
$arErrors[107][1] = "1";
// A user will get this error if an exception is caught while detecting if Net2Go has been disabled using Network Magic
$arErrors[108][0] = "An error occurred while determining whether " . $sProductNameInformal . " is turned on. Please try again.";
$arErrors[108][1] = "1";
// A user will get this error if Net2Go has been disabled via the Network Magic
$arErrors[109][0] = "" . $sProductNameInformal . " is currently turned off. A member of the network can turn it on, by opening " . $sParentProductNameInformal . ", selecting Tools, and then Options.";
$arErrors[109][1] = "0";
// The user's session has expired or they clicked on a bookmark w/o a session to begin with
$arErrors[110][0] = "Since there was no activity through your connection, " . $sProductNameInformal . " has automatically signed you out. Please sign in again.";
$arErrors[110][1] = "2";
// The IP address being used does not match the IP address associated with the session
$arErrors[111][0] = "The Web browser you are currently using is not the one you were using earlier. Please sign in again.";
$arErrors[111][1] = "0";
// NM is in Shields up mode - Net2Go is disabled
$arErrors[112][0] = "You are currently connected to another network. Before you can sign in to " . $sProductNameInformal . ", disconnect from the other network first.";
$arErrors[112][1] = "0";
// NM is in Shields up mode - Net2Go is disabled
$arErrors[113][0] = "An error occurred when trying to connect to another network. You cannot sign in to " . $sProductNameInformal . " now.";
$arErrors[113][1] = "0";
// Net2Go does not yet have a password, so the user gets kicked to login with a failure message
$arErrors[114][0] ="Before you can sign in, there must be a " . $sProductNameInformal . " password. A member of the network must set up this password using " . $sParentProductNameInformal . ".";
$arErrors[114][1] = "0";
// add descirp here (serialization error)
$arErrors[115][0] = "add logging comment here";
$arErrors[115][1] = "0";
// User is experiencing a login failure lockout
$arErrors[116][0] = "An incorrect password was entered too many times. To protect the network from password attacks, " . $sProductNameInformal . " is temporarily preventing anyone from signing in. Check your password and try to sign in again later.";
$arErrors[116][1] = "0";
// Cookies are disabled on the user's browser. This comes up on only login.
$arErrors[117][0] = "Set up your Web browser to allow (accept) cookies. By doing so, you can avoid performance issues with " . $sProductNameInformal . ". For steps in configuring this, see the Help for your browser.";
$arErrors[117][1] = "2";
//Javascript is disabled on the user's browser. This comes up on only login.
$arErrors[118][0] = "Set up your Web browser to run JavaScript. By doing so, you can avoid performance issues with " . $sProductNameInformal . ". For steps in configuring this, see the Help for your browser.";
$arErrors[118][1] = "2";
// User is using MAC IE 5.2.3. This come up on every screen.
$arErrors[119][0] = "" . $sParentProductNameInformal . " " . $sProductNameInformal . " performs better with Web browsers other than the version of Internet Explorer for Mac you are using. Consider using another browser instead (for example, Apple Safari or Mozilla Firefox 1.0 and later).";
$arErrors[119][1] = "2";
// Cookies are disabled on the user's browser. This come up on every screen except login where the login case is used.
$arErrors[120][0] = "Set up your Web browser to allow (accept) cookies. By doing so, you can avoid performance issues with " . $sProductNameInformal . ". For steps in configuring this, see the Help for your browser.";
$arErrors[120][1] = "2";
// Javascript is disabled on the user's browser. This come up on every screen except login where the login case is used.
$arErrors[121][0] = "Set up your Web browser to run JavaScript. By doing so, you can avoid performance issues with " . $sProductNameInformal . ". For steps in configuring this, see the Help for your browser.";
$arErrors[121][1] = "2";
// User is using MAC IE 5.2.3. - title of error
$arErrors[122][0] = "Please Use Another Web Browser";
$arErrors[122][1] = "2";
// Cookies are disabled on the user's browser. - title of error
$arErrors[123][0] = "Set Up Your Web Browser To Allow Cookies";
$arErrors[123][1] = "2";
// Javascript is disabled on the user's browser. - title of error
$arErrors[124][0] = "Set Up Your Web Browser To Allow JavaScript";
$arErrors[124][1] = "2";
// user tried to view debug information witout a valid sesion.
$arErrors[125][0] = "This page may only be viewed by an authorized user.";
$arErrors[125][1] = "0";
// The user's clock is skewed by more than the length of the session in relation to the Net2Go server's clock.
$arErrors[126][0] = "This computer\'s system clock might be set to a later time than the clock on the " . $sProductNameInformal . " host computer. Try refreshing this page in your Web browser. If there is still a problem, please update this computer\'s system clock to the correct time.";
$arErrors[126][1] = "0";
// user tried to view a feature that is currently marked as disabled
$arErrors[127][0] = "This feature is not currently enabled. Please contact the " . $sProductNameInformal . " site owner for more information.";
$arErrors[127][1] = "0";
// *****************************
// * CUSTOM HTTP ERRORS
// *****************************
// Custom 403 forbidden page used when a user tries to access the web based admin section of Net2Go from a machine other than the Net2Go machine
$arErrors[130][0] = "You can only set the " . $sProductNameInformal . " password at the computer where " . $sProductNameInformal . " is installed. Go to that computer now and change it.";
$arErrors[130][1] = "0";
// Custom 404 not found page used when a user tries to access a non existent page
$arErrors[131][0] = "The page you requested was not found. Please make sure that you entered the correct address.";
$arErrors[131][1] = "1";
// When a PHP is attempted to be executed from the ImageCache directory
$arErrors[132][0] = "To help keep the network secure, " . $sProductNameInformal . " cannot display the page you requested.";
$arErrors[132][1] = "0";
// Custom 403 page
$arErrors[133][0] = "Permission denied.";
$arErrors[133][1] = "1";
// *******************************
// * MISSING QUERYSTRING VARIABLES
// *******************************
// The share QS variable was not provided, user likely hacking the URL
$arErrors[200][0] = "Missing share.";
$arErrors[200][1] = "1";
// The path QS variable was not provided, user is likely hacking the URL
$arErrors[201][0] = "Missing path.";
$arErrors[201][1] = "1";
// Occurs in the slideshow when no image number is passed in the QS
$arErrors[202][0] = "No image specified.";
$arErrors[202][1] = "1";
// Occurs in the slideshow when a user passes a bad imagetype to the image.php file
$arErrors[203][0] = "Bad imagetype specified.";
$arErrors[203][1] = "1";
// Occurs during download (file open, file save, thumbnail create, etc...) when no filename is passed in the QS
$arErrors[204][0] = "No file specified.";
$arErrors[204][1] = "1";
// *******************************
// * SHARED FOLDERS
// *******************************
// Occurs when a user does not have any shared folders
$arErrors[300][0] = "There are currently no shared folders. Contact a member of the network and have shared folders set up using " . $sParentProductNameInformal . ".";
$arErrors[300][1] = "1";
// Occurs when the share and path information passed int eh QS do not match to a known resource
$arErrors[301][0] = "There is no shared folder at the location that you specified. Please make sure that you entered the correct address.";
$arErrors[301][1] = "0";
// Occurs when the folder that was requested can not be found on the filesystem.
$arErrors[302][0] = "The folder you want is not available. Make sure that the computer is online and that the folder has the same name";
$arErrors[302][1] = "1";
// Occurs when a folder is requested, and we can tell that it is offline
$arErrors[303][0] = "The folder you want is not available. Make sure that the computer is online.";
$arErrors[303][1] = "1";
// Occurs when a file is requested for downloading and we can tell that the share it is on is offline
$arErrors[304][0] = "The file you want is currently not available. Make sure that the computer is online.";
$arErrors[304][1] = "1";
// Occurs when we can not find a share on the file system, likely because it is no longer being shared.
$arErrors[305][0] = "" . $sParentProductNameInformal . " cannot locate the shared folder you want. The folder might be renamed or deleted.";
$arErrors[305][1] = "0";
// A catch all for really bad things relating to fetching of shares
$arErrors[306][0] = "There was a problem accessing the shared folder you want. Please try again.";
$arErrors[306][1] = "1";
// This error occurs when we catch an exception trying to determine if uploads are enabled or not.
$arErrors[307][0] = "There was a problem activating uploading through " . $sParentProductNameInformal . ". Please try again.";
$arErrors[307][1] = "1";
// This error occurs when a non-logged in user attempts to view a private share
$arErrors[308][0] = "To access this area, first type the " . $sProductNameInformal . " password. Remember, this password is case sensitive.";
$arErrors[308][1] = "2";
// This error occurs when we catch an exception trying to get share properties
$arErrors[309][0] = "There was a problem accessing the shared folder you want. Please try again.";
$arErrors[309][1] = "0";
// This error occurs when any user attempts to view a restricted share.
$arErrors[310][0] = "This share is restricted and may not be viewed with " . $sProductNameInformal;
$arErrors[310][1] = "2";
// This error occurs when we get an undefined access level back
$arErrors[311][0] = "There was a problem accessing the shared folder you want. Please try again.";
$arErrors[311][1] = "0";
// A limit of 0 was requested for an RSS feed, but is not allowed.
$arErrors[312][0] = "No items were requested.";
$arErrors[312][1] = "0";
// *******************************
// * UPLOAD ERRORS
// *******************************
// A generic error occurred during upload that we can not identify
$arErrors[320][0] = "An error occurred during upload.";
$arErrors[320][1] = "0";
// PHP upload error - (UPLOAD_ERR_NO_FILE) - No file was specified
$arErrors[321][0] = "Click Browse first and locate the file you want to upload.";
$arErrors[321][1] = "1";
// PHP upload error - (UPLOAD_ERR_INI_SIZE || UPLOAD_ERR_FORM_SIZE) - File size is above allowed maximum in php.ini
$arErrors[322][0] = "The file you tried to upload is larger than " . bytesToHumanReadableUsage($iMaxFileSize, 0) . ".";
$arErrors[322][1] = "1";
// PHP upload error - (UPLOAD_ERR_PARTIAL) - An error occurred receiving the file from the user's browser
$arErrors[323][0] = "An error occurred when your " . $sParentProductNameInformal . " computer tried to receive the file. Please try uploading again.";
$arErrors[323][1] = "1";
// PHP upload error - Security provisions disallow uploading of this specific file type
// these file types are setup iupload .phphp and are currently set to be ".exe;.com;.js;.cmd"
$arErrors[324][0] = "To help keep the network more secure, you cannot upload this type of file. Files with certain extensions (for example, .exe) can contain viruses or worms.";
$arErrors[324][1] = "0";
// PHP upload error
$arErrors[325][0] = "An error occurred while uploading your file. Make sure that the computer to which you are uploading is online.";
$arErrors[325][1] = "0";
// PHP upload error - unknown error - PHP should return it's specific error here after the text below
$arErrors[326][0] = "Unknown error. ";
$arErrors[326][1] = "0";
// This error occurs when we a user trys to upload if upload is disabled (shouldn't be able to, but maybe they bookmarked the page...
$arErrors[327][0] = "Uploading files using " . $sProductNameInformal . " is currently turned off. A member of the network must use " . $sParentProductNameInformal . " and set up the folder to allow uploading.";
$arErrors[327][1] = "0";
// This error occurs when a user tries to upload if upload is disabled for a SPECIFIC FOLDER (shouldn't be able to, but maybe they bookmarked the page...
$arErrors[328][0] = "For this folder, uploading files using " . $sProductNameInformal . " is currently turned off. A member of the network must use " . $sParentProductNameInformal . " and set up the folder to allow uploading.";
$arErrors[328][1] = "0";
// This error occurs when a user tries to upload if upload is disabled for a SPECIFIC FOLDER (shouldn't be able to, but maybe they bookmarked the page...
$arErrors[329][0] = "There is not enough drive space for this file.";
$arErrors[329][1] = "0";
// *******************************
// * DOWNLOAD ERRORS
// *******************************
// A generic error occurred during download that we can not identify
// We were not able to get the file's size from the filesystem to add to the headers.
$arErrors[341][0] = "An error occurred while obtaining the file's size.";
$arErrors[341][1] = "0";
// File does not exist anymore.
$arErrors[342][0] = "This file does not exist. Please make sure that you entered the correct address.";
$arErrors[342][1] = "1";
// File can not be read, maybe it is encrypted?
$arErrors[343][0] = "There was an error opening or saving this file. This can occur with files that have special settings (for example, the file is encrypted).";
$arErrors[343][1] = "0";
// *******************************
// * ADMIN/SIGNUP ERRORS:
// *******************************
// The passwords entered do not match
$arErrors[401][0] = "The confirmation password that you typed does not match the new password. Please try again.";
$arErrors[401][1] = "1";
// The password entered does not meet the necessary strong password requirements.
// This is only presented if the user's password fails multiple strong password requirements.
// if it fails just one, the specific message will appear. JScript checks for all of these,
// so we should never have to use them, but if a user mucks with the post variables, we might see these.
$arErrors[402][0] = "The password you entered does not meet the minimum password requirements.";
$arErrors[402][1] = "1";
// Either the primary password or the confirm password field was blank.
$arErrors[403][0] = "Make sure you type your current " . $sProductNameInformal . " password, and then retype it to confirm.";
$arErrors[403][1] = "1";
// They already have a password and cannot create one. To change it, they'd have to go to Network Magic.
$arErrors[404][0] = "The " . $sProductNameInformal . " password has already been created. To change or reset it, contact a " . $sProductNameInformal . " member of the network to do so using " . $sParentProductNameInformal . ".";
$sProductNameInformal . ".";
$arErrors[404][1] = "1";
// The password entered does not have at least 8 characters
$arErrors[405][0] = "Your " . $sProductNameInformal . " password must contain at least eight characters.";
$arErrors[405][1] = "1";
// The password entered does not contain a number
$arErrors[406][0] = "Your " . $sProductNameInformal . " password must contain at least one number (0 through 9).";
$arErrors[406][1] = "1";
// The password entered does not contain a Capital letter
$arErrors[407][0] = "Your " . $sProductNameInformal . " password must contain at least one capital letter (A through Z).";
$arErrors[407][1] = "1";
// The password entered does not contain a lowercase letter
$arErrors[408][0] = "Your " . $sProductNameInformal . " password must contain at least one lowercase letter (a through z).";
$arErrors[408][1] = "1";
// The password entered is too long - the user is trying to submit the form on their own
$arErrors[409][0] = "The password you entered is too long. Please type a new, shorter password.";
$arErrors[409][1] = "1";
// The password creation process threw an exception
$arErrors[410][0] = "An error occurred while creating your password. Please type your password again.";
$arErrors[410][1] = "1";
// While attmepting to change their password, the user did not enter the correct current password
$arErrors[411][0] = "You did not type the correct current password. Please type the " . $sProductNameInformal . " password again.";
$arErrors[411][1] = "1";
// While attepting to access site, we were unable to secure the WAN IP address and they must intervene
$arErrors[412][0] = "" . $sProductNameInformal . " cannot connect to your router. Make sure your router is turned on and has a complete, correct IP address. At your " . $sProductNameInformal . " computer, make sure " . $sParentProductNameInformal . " is set up for access to router settings. For information on how to do this, see the " . $sParentProductNameInformal . " Help.";
$arErrors[412][1] = "0";
// While attempting to get their WAN IP, there was an exception thrown
$arErrors[413][0] = "There was an error communicating with the router in your network. Turn off your router, wait 30 seconds, and then turn it on again. If the problem persists, please contact customer support.";
$arErrors[413][1] = "0";
// While siging up, there was an exception connecting to the datacenter
$arErrors[414][0] = "There was an error setting up the " . $sProductNameInformal . " site. Please try again.";
$arErrors[414][1] = "0";
// While activating, the datacenter QS variable was not passed
$arErrors[415][0] = "There was an error setting up the " . $sProductNameInformal . " Web site. Open " . $sParentProductNameInformal . ", select " . $sProductNameInformal . " and finish setting it up.";
$arErrors[415][1] = "0";
// While activating, the site domain QS variable was not passed
$arErrors[416][0] = "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
$arErrors[416][1] = "0";
// While activating, the user QS variable was not passed
$arErrors[417][0] = "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
$arErrors[417][1] = "0";
// While activating, the session_id QS variable was not passed
$arErrors[418][0] = "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
$arErrors[418][1] = "0";
// *******************************
// *NOTES ERRORS:
// *******************************
// Unknown note type
$arErrors[501][0] = "Note type is unknown or was not entered.";
$arErrors[501][1] = "0";
// *******************************
// *DEVICE ERRORS:
// *******************************
// Invalid webcamera IP passed to webcamera page.
$arErrors[510][0] = "There was an error connecting to the network camera (Webcam). Please try again.";
$arErrors[510][1] = "0";
// Occurs when our string matching does not match the model name of the web camera being accessed.
$arErrors[511][0] = "" . $sProductNameInformal . " does not support this network camera (Webcam) model. For a list of cameras supported, please visit our <a href=\"http://go.purenetworks.com/redir/click/client/camera/\">Supported Camera Page</a>.";
$arErrors[511][1] = "0";
// Occurs when the camera interface does not support viewing in the browser being used
$arErrors[512][0] = "You cannot use this Web browser to view images from your network camera (Webcam). Try using a browser that supports ActiveX controls instead.";
$arErrors[512][1] = "0";
// Occurs when the camera is offline
$arErrors[513][0] = "This camera is currently offline.<br>Please use " . $sParentProductNameInformal . " to help fix this situation.";
$arErrors[513][1] = "0";
// Occurs when another program is viewing the image
$arErrors[514][0] = "This USB camera is being viewed in another program on your PC. Please close that program and try again.";
$arErrors[514][1] = "0";
function return_error_text($iErrorCode, $sExtraErrorInfo, $arErrors)
{
if(isset($arErrors[$iErrorCode][0]))
{
return ($arErrors[$iErrorCode][0]);
}
else
{
return ($arErrors[100][0]);
}
}
function return_error_type($iErrorCode, $arErrors)
{
if(isset($arErrors[$iErrorCode][1]))
{
return ($arErrors[$iErrorCode][1]);
}
else
{
return ($arErrors[100][1]);
}
}
function return_error_code($iErrorCode, $arErrors)