home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / _error_codes.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  23.7 KB  |  442 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2006 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #3 $
  8. //
  9. $arErrors[] = "";
  10.  
  11. // *****************************************
  12. // * KEY:
  13. // * $arErrors[x][0] --> the error text
  14. // * $arErrors[x][1] --> 0 = stop / 1 = warn / 2 = info
  15. // *****************************************
  16.  
  17. // *****************************
  18. // * LOGIN/SITE ERRORS
  19. // *****************************
  20.  
  21. // generic error for when the real reason is not known
  22. $arErrors[100][0]  =   "An unknown error has occurred with " . $sProductNameInformal . ". Please try this again.";
  23. $arErrors[100][1]   =   "1";
  24.  
  25. // login error returned when a login or password is entered incorrectly while logging into the site
  26. $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.";
  27. $arErrors[101][1]   =   "1";
  28.  
  29. // Remote Access could not load the Network Magic libraries.  Chances are it is not running.
  30. $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.";
  31. $arErrors[103][1]   =   "0";
  32.  
  33. // A user's session has timed out and they have been returned to the login page.
  34. $arErrors[104][0]  =   "Because there was no activity through your connection, you have been automatically signed out from " . $sProductNameInformal . ". Please sign in again.";
  35. $arErrors[104][1]   =   "1";
  36.  
  37. // Cookies are disabled on the user's browser.  This come up at login.
  38. $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.";
  39. $arErrors[105][1]   =   "0";
  40.  
  41. //Javascript is disabled on the user's browser.  This comes up at login.
  42. $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.";
  43. $arErrors[106][1]   =   "0";
  44.  
  45. // For logging only, not displayed to user - a user attempted to view a page w/o a session
  46. $arErrors[107][0]  =   "User attempted to view page without a valid session.";
  47. $arErrors[107][1]   =   "1";
  48.  
  49. // A user will get this error if an exception is caught while detecting if Net2Go has been disabled using Network Magic
  50. $arErrors[108][0]   =   "An error occurred while determining whether " . $sProductNameInformal . " is turned on. Please try again.";
  51. $arErrors[108][1]   =   "1";
  52.  
  53. // A user will get this error if Net2Go has been disabled via the Network Magic
  54. $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.";
  55. $arErrors[109][1]   =   "0";
  56.  
  57. // The user's session has expired or they clicked on a bookmark w/o a session to begin with
  58. $arErrors[110][0]  =   "Since there was no activity through your connection, " . $sProductNameInformal . " has automatically signed you out. Please sign in again.";
  59. $arErrors[110][1]   =   "2";
  60.  
  61. // The IP address being used does not match the IP address associated with the session
  62. $arErrors[111][0]  =   "The Web browser you are currently using is not the one you were using earlier. Please sign in again.";
  63. $arErrors[111][1]   =   "0";
  64.  
  65. // NM is in Shields up mode - Net2Go is disabled
  66. $arErrors[112][0]  =   "You are currently connected to another network. Before you can sign in to " . $sProductNameInformal . ", disconnect from the other network first.";
  67. $arErrors[112][1]   =   "0";
  68.  
  69. // NM is in Shields up mode - Net2Go is disabled
  70. $arErrors[113][0]  =   "An error occurred when trying to connect to another network. You cannot sign in to " . $sProductNameInformal . " now.";
  71. $arErrors[113][1]   =   "0";
  72.  
  73. // Net2Go does not yet have a password, so the user gets kicked to login with a failure message
  74. $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 . ".";
  75. $arErrors[114][1]   =   "0";
  76.  
  77. // add descirp here (serialization error)
  78. $arErrors[115][0]  = "add logging comment here";
  79. $arErrors[115][1]   =   "0";
  80.  
  81. // User is experiencing a login failure lockout
  82. $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.";
  83. $arErrors[116][1]   =   "0";
  84.  
  85. // Cookies are disabled on the user's browser.  This comes up on only login.
  86. $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.";
  87. $arErrors[117][1]   =   "2";
  88.  
  89. //Javascript is disabled on the user's browser.  This comes up on only login.
  90. $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.";
  91. $arErrors[118][1]   =   "2";
  92.  
  93. // User is using MAC IE 5.2.3. This come up on every screen.
  94. $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).";
  95. $arErrors[119][1]   =   "2";
  96.  
  97. // Cookies are disabled on the user's browser.  This come up on every screen except login where the login case is used.
  98. $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.";
  99. $arErrors[120][1]   =   "2";
  100.  
  101. // Javascript is disabled on the user's browser.  This come up on every screen except login where the login case is used.
  102. $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.";
  103. $arErrors[121][1]   =   "2";
  104.  
  105. // User is using MAC IE 5.2.3. - title of error
  106. $arErrors[122][0]  =   "Please Use Another Web Browser";
  107. $arErrors[122][1]   =   "2";
  108.  
  109. // Cookies are disabled on the user's browser. - title of error
  110. $arErrors[123][0]  =   "Set Up Your Web Browser To Allow Cookies";
  111. $arErrors[123][1]   =   "2";
  112.  
  113. // Javascript is disabled on the user's browser. - title of error
  114. $arErrors[124][0]  =   "Set Up Your Web Browser To Allow JavaScript";
  115. $arErrors[124][1]   =   "2";
  116.  
  117. // user tried to view debug information witout a valid sesion.
  118. $arErrors[125][0]  =   "This page may only be viewed by an authorized user.";
  119. $arErrors[125][1]   =   "0";
  120.  
  121. // The user's clock is skewed by more than the length of the session in relation to the Net2Go server's clock.
  122. $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.";
  123. $arErrors[126][1]   =   "0";
  124.  
  125. // user tried to view a feature that is currently marked as disabled
  126. $arErrors[127][0]  =   "This feature is not currently enabled. Please contact the " . $sProductNameInformal . " site owner for more information.";
  127. $arErrors[127][1]   =   "0";
  128.  
  129. // *****************************
  130. // * CUSTOM HTTP ERRORS
  131. // *****************************
  132.  
  133. // 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
  134. $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.";
  135. $arErrors[130][1]   =   "0";
  136.  
  137. // Custom 404 not found page used when a user tries to access a non existent page
  138. $arErrors[131][0]  =   "The page you requested was not found. Please make sure that you entered the correct address.";
  139. $arErrors[131][1]   =   "1";
  140.  
  141. // When a PHP is attempted to be executed from the ImageCache directory
  142. $arErrors[132][0]  =   "To help keep the network secure, " . $sProductNameInformal . " cannot display the page you requested.";
  143. $arErrors[132][1]   =   "0";
  144.  
  145. // Custom 403 page
  146. $arErrors[133][0]  =   "Permission denied.";
  147. $arErrors[133][1]   =   "1";
  148.  
  149. // *******************************
  150. // * MISSING QUERYSTRING VARIABLES
  151. // *******************************
  152.  
  153. // The share QS variable was not provided, user likely hacking the URL
  154. $arErrors[200][0]  =   "Missing share.";
  155. $arErrors[200][1]   =   "1";
  156.  
  157. // The path QS variable was not provided, user is likely hacking the URL
  158. $arErrors[201][0]  =   "Missing path.";
  159. $arErrors[201][1]   =   "1";
  160.  
  161. // Occurs in the slideshow when no image number is passed in the QS
  162. $arErrors[202][0]  =   "No image specified.";
  163. $arErrors[202][1]   =   "1";
  164.  
  165. // Occurs in the slideshow when a user passes a bad imagetype to the image.php file
  166. $arErrors[203][0]  =   "Bad imagetype specified.";
  167. $arErrors[203][1]   =   "1";
  168.  
  169. // Occurs during download (file open, file save, thumbnail create, etc...) when no filename is passed in the QS
  170. $arErrors[204][0]  =   "No file specified.";
  171. $arErrors[204][1]   =   "1";
  172.  
  173. // *******************************
  174. // * SHARED FOLDERS
  175. // *******************************
  176.  
  177. // Occurs when a user does not have any shared folders
  178. $arErrors[300][0]  =   "There are currently no shared folders. Contact a member of the network and have shared folders set up using " . $sParentProductNameInformal . ".";
  179. $arErrors[300][1]   =   "1";
  180.  
  181. // Occurs when the share and path information passed int eh QS do not match to a known resource
  182. $arErrors[301][0]  =   "There is no shared folder at the location that you specified. Please make sure that you entered the correct address.";
  183. $arErrors[301][1]   =   "0";
  184.  
  185. // Occurs when the folder that was requested can not be found on the filesystem.
  186. $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";
  187. $arErrors[302][1]   =   "1";
  188.  
  189. // Occurs when a folder is requested, and we can tell that it is offline
  190. $arErrors[303][0]  =   "The folder you want is not available. Make sure that the computer is online.";
  191. $arErrors[303][1]   =   "1";
  192.  
  193. // Occurs when a file is requested for downloading and we can tell that the share it is on is offline
  194. $arErrors[304][0]  =   "The file you want is currently not available. Make sure that the computer is online.";
  195. $arErrors[304][1]   =   "1";
  196.  
  197. // Occurs when we can not find a share on the file system, likely because it is no longer being shared.
  198. $arErrors[305][0]  =   "" . $sParentProductNameInformal . " cannot locate the shared folder you want. The folder might be renamed or deleted.";
  199. $arErrors[305][1]   =   "0";
  200.  
  201. // A catch all for really bad things relating to fetching of shares
  202. $arErrors[306][0]  =   "There was a problem accessing the shared folder you want. Please try again.";
  203. $arErrors[306][1]   =   "1";
  204.  
  205. // This error occurs when we catch an exception trying to determine if uploads are enabled or not.
  206. $arErrors[307][0]  =   "There was a problem activating uploading through " . $sParentProductNameInformal . ". Please try again.";
  207. $arErrors[307][1]   =   "1";
  208.  
  209. // This error occurs when a non-logged in user attempts to view a private share
  210. $arErrors[308][0]  =   "To access this area, first type the " . $sProductNameInformal . " password. Remember, this password is case sensitive.";
  211. $arErrors[308][1]   =   "2";
  212.  
  213. // This error occurs when we catch an exception trying to get share properties
  214. $arErrors[309][0]  =   "There was a problem accessing the shared folder you want. Please try again.";
  215. $arErrors[309][1]   =   "0";
  216.  
  217. // This error occurs when any user attempts to view a restricted share.
  218. $arErrors[310][0]  =   "This share is restricted and may not be viewed with " . $sProductNameInformal;
  219. $arErrors[310][1]   =   "2";
  220.  
  221. // This error occurs when we get an undefined access level back
  222. $arErrors[311][0]  =   "There was a problem accessing the shared folder you want. Please try again.";
  223. $arErrors[311][1]   =   "0";
  224.  
  225. // A limit of 0 was requested for an RSS feed, but is not allowed.
  226. $arErrors[312][0]  =   "No items were requested.";
  227. $arErrors[312][1]   =   "0";
  228.  
  229. // *******************************
  230. // * UPLOAD ERRORS
  231. // *******************************
  232.  
  233. // A generic error occurred during upload that we can not identify
  234. $arErrors[320][0]  =   "An error occurred during upload.";
  235. $arErrors[320][1]   =   "0";
  236.  
  237. // PHP upload error - (UPLOAD_ERR_NO_FILE) - No file was specified
  238. $arErrors[321][0]  =   "Click Browse first and locate the file you want to upload.";
  239. $arErrors[321][1]   =   "1";
  240.  
  241. // PHP upload error - (UPLOAD_ERR_INI_SIZE || UPLOAD_ERR_FORM_SIZE) - File size is above allowed maximum in php.ini
  242. $arErrors[322][0]  =   "The file you tried to upload is larger than " . bytesToHumanReadableUsage($iMaxFileSize, 0) . ".";
  243. $arErrors[322][1]   =   "1";
  244.  
  245. // PHP upload error - (UPLOAD_ERR_PARTIAL) - An error occurred receiving the file from the user's browser
  246. $arErrors[323][0]  =   "An error occurred when your " . $sParentProductNameInformal . " computer tried to receive the file. Please try uploading again.";
  247. $arErrors[323][1]   =   "1";
  248.  
  249. // PHP upload error - Security provisions disallow uploading of this specific file type
  250. // these file types are setup iupload .phphp and are currently set to be ".exe;.com;.js;.cmd"
  251. $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.";
  252. $arErrors[324][1]   =   "0";
  253.  
  254. // PHP upload error
  255. $arErrors[325][0]  =   "An error occurred while uploading your file. Make sure that the computer to which you are uploading is online.";
  256. $arErrors[325][1]   =   "0";
  257.  
  258. // PHP upload error - unknown error - PHP should return it's specific error here after the text below
  259. $arErrors[326][0]  =   "Unknown error. ";
  260. $arErrors[326][1]   =   "0";
  261.  
  262. // 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...
  263. $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.";
  264. $arErrors[327][1]   =   "0";
  265.  
  266. // 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...
  267. $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.";
  268. $arErrors[328][1]   =   "0";
  269.  
  270. // 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...
  271. $arErrors[329][0]  =   "There is not enough drive space for this file.";
  272. $arErrors[329][1]   =   "0";
  273.  
  274. // *******************************
  275. // * DOWNLOAD ERRORS
  276. // *******************************
  277.  
  278. // A generic error occurred during download that we can not identify
  279. $arErrors[340][0]   =   "An error occurred during download. Please try downloading again.";
  280. $arErrors[340][1]   =   "1";
  281.  
  282. // We were not able to get the file's size from the filesystem to add to the headers.
  283. $arErrors[341][0]   =   "An error occurred while obtaining the file's size.";
  284. $arErrors[341][1]   =   "0";
  285.  
  286. // File does not exist anymore.
  287. $arErrors[342][0]   =   "This file does not exist. Please make sure that you entered the correct address.";
  288. $arErrors[342][1]   =   "1";
  289.  
  290. // File can not be read, maybe it is encrypted?
  291. $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).";
  292. $arErrors[343][1]   =   "0";
  293.  
  294. // *******************************
  295. // * ADMIN/SIGNUP ERRORS:
  296. // *******************************
  297.  
  298. // The passwords entered do not match
  299. $arErrors[401][0]   =   "The confirmation password that you typed does not match the new password. Please try again.";
  300. $arErrors[401][1]   =   "1";
  301.  
  302. // The password entered does not meet the necessary strong password requirements.
  303. // This is only presented if the user's password fails multiple strong password requirements.
  304. // if it fails just one, the specific message will appear.  JScript checks for all of these,
  305. // so we should never have to use them, but if a user mucks with the post variables, we might see these.
  306. $arErrors[402][0]   =   "The password you entered does not meet the minimum password requirements.";
  307. $arErrors[402][1]   =   "1";
  308.  
  309. // Either the primary password or the confirm password field was blank.
  310. $arErrors[403][0]   =   "Make sure you type your current " . $sProductNameInformal . " password, and then retype it to confirm.";
  311. $arErrors[403][1]   =   "1";
  312.  
  313. // They already have a password and cannot create one.  To change it, they'd have to go to Network Magic.
  314. $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 . ".";
  315. $sProductNameInformal . ".";
  316. $arErrors[404][1]   =   "1";
  317.  
  318. // The password entered does not have at least 8 characters
  319. $arErrors[405][0]   =   "Your " . $sProductNameInformal . " password must contain at least eight characters.";
  320. $arErrors[405][1]   =   "1";
  321.  
  322. // The password entered does not contain a number
  323. $arErrors[406][0]   =   "Your " . $sProductNameInformal . " password must contain at least one number (0 through 9).";
  324. $arErrors[406][1]   =   "1";
  325.  
  326. // The password entered does not contain a Capital letter
  327. $arErrors[407][0]   =   "Your " . $sProductNameInformal . " password must contain at least one capital letter (A through Z).";
  328. $arErrors[407][1]   =   "1";
  329.  
  330. // The password entered does not contain a lowercase letter
  331. $arErrors[408][0]   =   "Your " . $sProductNameInformal . " password must contain at least one lowercase letter (a through z).";
  332. $arErrors[408][1]   =   "1";
  333.  
  334. // The password entered is too long - the user is trying to submit the form on their own
  335. $arErrors[409][0]   =   "The password you entered is too long. Please type a new, shorter password.";
  336. $arErrors[409][1]   =   "1";
  337.  
  338. // The password creation process threw an exception
  339. $arErrors[410][0]   =   "An error occurred while creating your password. Please type your password again.";
  340. $arErrors[410][1]   =   "1";
  341.  
  342. // While attmepting to change their password, the user did not enter the correct current password
  343. $arErrors[411][0]   =   "You did not type the correct current password. Please type the " . $sProductNameInformal . " password again.";
  344. $arErrors[411][1]   =   "1";
  345.  
  346. // While attepting to access site, we were unable to secure the WAN IP address and they must intervene
  347. $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.";
  348. $arErrors[412][1]   =   "0";
  349.  
  350. // While attempting to get their WAN IP, there was an exception thrown
  351. $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.";
  352. $arErrors[413][1]   =   "0";
  353.  
  354. // While siging up, there was an exception connecting to the datacenter
  355. $arErrors[414][0]   =   "There was an error setting up the " . $sProductNameInformal . " site. Please try again.";
  356. $arErrors[414][1]   =   "0";
  357.  
  358. // While activating, the datacenter QS variable was not passed
  359. $arErrors[415][0]   =   "There was an error setting up the " . $sProductNameInformal . " Web site. Open " . $sParentProductNameInformal . ", select " . $sProductNameInformal . " and finish setting it up.";
  360. $arErrors[415][1]   =   "0";
  361.  
  362. // While activating, the site domain QS variable was not passed
  363. $arErrors[416][0]   =   "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
  364. $arErrors[416][1]   =   "0";
  365.  
  366. // While activating, the user QS variable was not passed
  367. $arErrors[417][0]   =   "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
  368. $arErrors[417][1]   =   "0";
  369.  
  370. // While activating, the session_id QS variable was not passed
  371. $arErrors[418][0]   =   "There was an error setting up the " . $sProductNameInformal . " Web site. Please try again.";
  372. $arErrors[418][1]   =   "0";
  373.  
  374. // *******************************
  375. // *NOTES ERRORS:
  376. // *******************************
  377.  
  378. // Unknown note type
  379. $arErrors[501][0]   =   "Note type is unknown or was not entered.";
  380. $arErrors[501][1]   =   "0";
  381.  
  382. // *******************************
  383. // *DEVICE ERRORS:
  384. // *******************************
  385.  
  386. // Invalid webcamera IP passed to webcamera page.
  387. $arErrors[510][0]   =   "There was an error connecting to the network camera (Webcam). Please try again.";
  388. $arErrors[510][1]   =   "0";
  389.  
  390. // Occurs when our string matching does not match the model name of the web camera being accessed.
  391. $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>.";
  392. $arErrors[511][1]   =   "0";
  393.  
  394. // Occurs when the camera interface does not support viewing in the browser being used
  395. $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.";
  396. $arErrors[512][1]   =   "0";
  397.  
  398. // Occurs when the camera is offline
  399. $arErrors[513][0]   =   "This camera is currently offline.<br>Please use " . $sParentProductNameInformal . " to help fix this situation.";
  400. $arErrors[513][1]   =   "0";
  401.  
  402. // Occurs when another program is viewing the image
  403. $arErrors[514][0]   =   "This USB camera is being viewed in another program on your PC. Please close that program and try again.";
  404. $arErrors[514][1]   =   "0";
  405.  
  406. function return_error_text($iErrorCode, $sExtraErrorInfo, $arErrors)
  407. {
  408.     if(isset($arErrors[$iErrorCode][0]))
  409.     {
  410.         return ($arErrors[$iErrorCode][0]);
  411.     }
  412.     else
  413.     {
  414.         return ($arErrors[100][0]);
  415.     }
  416. }
  417.  
  418. function return_error_type($iErrorCode, $arErrors)
  419. {
  420.     if(isset($arErrors[$iErrorCode][1]))
  421.     {
  422.         return ($arErrors[$iErrorCode][1]);
  423.     }
  424.     else
  425.     {
  426.         return ($arErrors[100][1]);
  427.     }
  428. }
  429.  
  430. function return_error_code($iErrorCode, $arErrors)
  431. {
  432.     if(isset($arErrors[$iErrorCode][0]))
  433.     {
  434.         return ($iErrorCode);
  435.     }
  436.     else
  437.     {
  438.         return (100);
  439.     }
  440. }
  441. ?>
  442.