XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
install.php
1<?php
2// Syntax replace define with const v2.3.0 2021/05/15 @gigamaster XCL-PHP7
3const _INSTALL_L0 = '<span>Ẋ OOPS Cube Web Application Platform</span><br>Starting the installation wizard' ;
4const _INSTALL_L168 = 'XCL 2.3 requires PHP7.4.x' ;
5const _INSTALL_L70 = 'Please change the file permission for mainfile.php so that it is writeable by the server (i.e. chmod 777 mainfile.php on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server ). Reload this page once you have changed the permission setting.';
6//define("_INSTALL_L71","Click on the button below to begin the installation.");
7const _INSTALL_L1 = 'Open mainfile.php with your text editor and find the following codes on line 31:' ;
8const _INSTALL_L2 = 'Now, change this line to:' ;
9const _INSTALL_L3 = 'Next, on line 35, change %s to %s' ;
10const _INSTALL_L4 = 'OK, I have set the above settings, let me try again!' ;
11const _INSTALL_L5 = 'WARNING!' ;
12const _INSTALL_L6 = 'There is a mismatch between your XOOPS_ROOT_PATH configuration on line 31 of mainfile.php and the root path info we have detected.' ;
13const _INSTALL_L7 = 'Your settings: ' ;
14const _INSTALL_L8 = 'We detected: ' ;
15const _INSTALL_L9 = '( On MS platforms, you may receive this error message even when your configuration is correct. If that is the case, please press the button below to continue)' ;
16const _INSTALL_L10 = 'Please press the button below to continue if this is really ok.' ;
17const _INSTALL_L11 = 'The server path to your XCL root directory' ;
18const _INSTALL_L12 = 'The public URL to your XCL root directory' ;
19const _INSTALL_L13 = 'If the above settings are correct, press the button below to continue.' ;
20const _INSTALL_L14 = 'Next' ;
21const _INSTALL_L15 = 'Please open mainfile.php and enter required DB settings data' ;
22const _INSTALL_L16 = '%s is the hostname of your database server.' ;
23const _INSTALL_L17 = '%s is the username of your database account.' ;
24const _INSTALL_L18 = '%s is the password required to access your database.' ;
25const _INSTALL_L19 = '%s is the name of your database in which XCL tables will be created.' ;
26const _INSTALL_L20 = '%s is the prefix for tables that will be made during the installation.' ;
27const _INSTALL_L21 = 'The following database was not found on the server:' ;
28const _INSTALL_L22 = 'Attempt to create it?' ;
29const _INSTALL_L23 = 'Yes' ;
30const _INSTALL_L24 = 'No' ;
31const _INSTALL_L25 = 'We have detected the following database information from your configuration in mainfile.php. If this is not correct, please fix it now.' ;
32const _INSTALL_L26 = 'Database Configuration' ;
33const _INSTALL_L51 = 'Database' ;
34const _INSTALL_L66 = 'Select the database to be used' ;
35const _INSTALL_L27 = 'Database Hostname' ;
36const _INSTALL_L67 = "Hostname of the database server. If you are unsure, 'localhost' works in most cases." ;
37const _INSTALL_L28 = 'Database Username' ;
38const _INSTALL_L65 = 'Your database user account on the host' ;
39const _INSTALL_L29 = 'Database Name' ;
40const _INSTALL_L64 = 'The name of database on the host. The installer will attempt to create the database' ;
41const _INSTALL_L52 = 'Database Password' ;
42const _INSTALL_L68 = 'Password for your database user account' ;
43const _INSTALL_L30 = 'Table Prefix' ;
44const _INSTALL_L63 = 'This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default.' ;
45const _INSTALL_L54 = 'Use persistent connection?' ;
46const _INSTALL_L69 = "Default is 'NO'. Choose 'NO' if you are unsure." ;
47const _INSTALL_L55 = 'The XCL Physical Path' ;
48const _INSTALL_L59 = 'Physical path to your main XCL directory WITHOUT trailing slash' ;
49const _INSTALL_L75 = 'The TRUST_PATH Physical Path' ;
50const _INSTALL_L76 = 'Physical path to your main TRUST_PATH directory WITHOUT trailing slash<br>It is recommended to place TRUST_PATH outside of the public DocumentRoot.' ;
51
52const _INSTALL_L56 = 'The XCL Virtual Path (URL)' ;
53const _INSTALL_L58 = 'Virtual path to your main XCL directory WITHOUT trailing slash' ;
54
55const _INSTALL_L31 = 'Could not create database. Contact the server administrator for details.' ;
56const _INSTALL_L32 = 'The 1st Step is completed successfully' ;
57const _INSTALL_L33 = "Click <a href='../index.php'>HERE</a> to see the home page of your site." ;
58const _INSTALL_L35 = "If you had any errors, please contact the dev team at <a href='https://github.com/xoopscube/' rel='external'>XOOPSCube Project</a>" ;
59const _INSTALL_L36 = "Create the Administrator account." ;
60const _INSTALL_L37 = 'Admin Name' ;
61const _INSTALL_L38 = 'Admin Email' ;
62const _INSTALL_L39 = 'Admin Password' ;
63const _INSTALL_L74 = 'Confirm Password' ;
64const _INSTALL_L77 = 'Set Default Timezone' ;
65const _INSTALL_L40 = 'Create Tables' ;
66const _INSTALL_L41 = 'Please go back and check all the required info and password field.' ;
67const _INSTALL_L42 = 'Back' ;
68const _INSTALL_L57 = 'Please enter %s' ;
69
70// %s is database name
71const _INSTALL_L43 = 'Database %s created!' ;
72
73// %s is table name
74const _INSTALL_L44 = 'Unable to make %s' ;
75const _INSTALL_L45 = 'Table %s created.' ;
76
77const _INSTALL_L46 = "In order for the modules included in the package to work correctly, the following files must be writeable by the server. Please change the permission settings for these files. (i.e. 'chmod 666 file_name' and 'chmod 777 dir_name' on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server)" ;
78const _INSTALL_L47 = 'Next' ;
79
80const _INSTALL_L53 = 'Confirm Web server Settings' ;
81
82const _INSTALL_L60 = 'Could not write into mainfile.php. Please check the file permission and try again.' ;
83const _INSTALL_L61 = 'Could not write to mainfile.php. Contact the server administrator for details.' ;
84const _INSTALL_L62 = 'Configuration data has been saved successfully to mainfile.php.' ;
85const _INSTALL_L72 = "The following directories must be created with the write permission by the server. (i.e. 'chmod 777 directory_name' on a UNIX/LINUX server)" ;
86const _INSTALL_L73 = 'Invalid Email' ;
87
88// add by haruki
89const _INSTALL_L80 = 'Introduction' ;
90const _INSTALL_L81 = 'Check file permissions' ;
91const _INSTALL_L82 = 'Checking file and directory permissions..' ;
92const _INSTALL_L83 = 'File is NOT writable %s' ;
93const _INSTALL_L84 = 'File is writable %s' ;
94const _INSTALL_L85 = 'Directory is NOT writable %s' ;
95const _INSTALL_L86 = 'Directory is writable %s' ;
96const _INSTALL_L87 = 'No errors detected.' ;
97const _INSTALL_L89 = 'General settings' ;
98const _INSTALL_L90 = 'General configuration' ;
99const _INSTALL_L91 = 'confirm' ;
100const _INSTALL_L92 = 'Save settings' ;
101const _INSTALL_L93 = 'Modify settings' ;
102const _INSTALL_L88 = 'Saving configuration data..' ;
103const _INSTALL_L166 = 'Check file permissions in TRUST_PATH' ;
104const _INSTALL_L167 = 'Check Trust Path Permissions' ;
105const _INSTALL_L94 = 'Check Public PATH and URL' ;
106const _INSTALL_L127 = 'Checking file path & URL settings..' ;
107const _INSTALL_L95 = 'Could not detect the physical path to your XOOPS directory.' ;
108const _INSTALL_L96 = 'There is a conflict between the detected physical path (%s) and the one you input.' ;
109const _INSTALL_L97 = '<b>Physical path</b> is correct.' ;
110
111const _INSTALL_L99 = '<b>Physical path</b> must be a directory.' ;
112const _INSTALL_L100 = '<b>Virtual path</b> is a valid URL.' ;
113const _INSTALL_L101 = '<b>Virtual path</b> is not a valid URL.' ;
114const _INSTALL_L102 = 'Confirm database settings' ;
115const _INSTALL_L103 = 'Restart from the beginning' ;
116const _INSTALL_L104 = 'Check database' ;
117const _INSTALL_L105 = 'Attempt to create database' ;
118const _INSTALL_L106 = 'Could not connect to the database server.' ;
119const _INSTALL_L107 = 'Please check the database server and its configuration.' ;
120const _INSTALL_L108 = 'Connection successfully established with the database server.' ;
121const _INSTALL_L109 = 'Database does not exists %s' ;
122const _INSTALL_L110 = 'Connection successfully to database %s' ;
123const _INSTALL_L111 = 'Database connection is OK.<br>Press the button below to create database tables.' ;
124const _INSTALL_L112 = 'Administrator Account' ;
125const _INSTALL_L113 = 'Table %s deleted.' ;
126const _INSTALL_L114 = 'Failed creating database tables.' ;
127const _INSTALL_L115 = 'Database tables created.<h3>Attention !</h3>An error message might occurs when the specified table exists. Check for duplicate records that could cause problems. For example: groups.' ;
128const _INSTALL_L116 = 'Add New Data' ;
129const _INSTALL_L117 = 'Finish' ;
130
131const _INSTALL_L118 = 'Failed creating table %s.' ;
132const _INSTALL_L119 = '%d entries inserted to table %s.' ;
133const _INSTALL_L120 = 'Failed inserting %d entries to table %s.' ;
134
135const _INSTALL_L121 = 'Constant %s written to %s.' ;
136const _INSTALL_L122 = 'Failed writing constant %s.' ;
137
138const _INSTALL_L123 = 'File %s stored in cache/ directory.' ;
139const _INSTALL_L124 = 'Failed storing file %s to cache/ directory.' ;
140
141const _INSTALL_L125 = 'File %s overwritten by %s.' ;
142const _INSTALL_L126 = 'Could not write to file %s.' ;
143
144const _INSTALL_L130 = 'The installation Wizard has detected anterior tables in your database.<br>The installer will now attempt to upgrade your database.' ;
145const _INSTALL_L131 = 'Tables for XCL already exist in your database.' ;
146const _INSTALL_L132 = 'update tables' ;
147const _INSTALL_L133 = 'Table %s updated.' ;
148const _INSTALL_L134 = 'Failed updating table %s.' ;
149const _INSTALL_L135 = 'Failed updating database tables.' ;
150const _INSTALL_L136 = 'Database tables updated.' ;
151const _INSTALL_L137 = 'update modules' ;
152const _INSTALL_L138 = 'update comments' ;
153const _INSTALL_L139 = 'update avatars' ;
154const _INSTALL_L140 = 'update smilies' ;
155const _INSTALL_L141 = 'The installer will now update each module to work with XCL.<br>Make sure that you have uploaded all files in XCL package to your server.<br>This may take a while to complete.' ;
156const _INSTALL_L142 = 'Updating modules..' ;
157const _INSTALL_L143 = 'The installer will now update configuration data of XOOPS 1.3.x to be used with XCL.' ;
158const _INSTALL_L144 = 'update config' ;
159const _INSTALL_L145 = 'Comment (ID: %s) inserted to the database.' ;
160const _INSTALL_L146 = 'Could not insert comment (ID: %s) to the database.' ;
161const _INSTALL_L147 = 'Updating comments..' ;
162const _INSTALL_L148 = 'Update complete.' ;
163const _INSTALL_L149 = 'The installer will now update comment posts in XOOPS 1.3.x to be used in XCL.<br>This may take a while to complete.' ;
164const _INSTALL_L150 = 'The installer will now update the smiley and user rank images to be used with XCL.<br>This may take a while to complete.' ;
165const _INSTALL_L151 = 'The installer will now update the user avatar images to be used in XCL.<br>This may take a while to complete.' ;
166const _INSTALL_L155 = 'Updating smiley/rank images..' ;
167const _INSTALL_L156 = 'Updating user avatar images..' ;
168const _INSTALL_L157 = 'Select the default user group for each group type' ;
169const _INSTALL_L158 = 'Groups in 1.3.x' ;
170const _INSTALL_L159 = 'Webmasters' ;
171const _INSTALL_L160 = 'Register Users' ;
172const _INSTALL_L161 = 'Anonymous Users' ;
173const _INSTALL_L162 = 'You must select a default group for each group type.' ;
174const _INSTALL_L163 = 'Table %s dropped.' ;
175const _INSTALL_L164 = 'Failed deleting table %s.' ;
176const _INSTALL_L165 = 'The site is currently closed for maintenance. Please come back later.' ;
177
178// %s is filename
179const _INSTALL_L152 = 'Could not open %s.' ;
180const _INSTALL_L153 = 'Could not update %s.' ;
181const _INSTALL_L154 = '%s updated.' ;
182
183const _INSTALL_L128 = 'Select a language for the installation process' ;
184const _INSTALL_L200 = 'Reload' ;
185const _INSTALL_L210 = 'XCL Global Settings (2nd step)' ;
186
187
188const _INSTALL_CHARSET = 'UTF-8' ;
189
190const _INSTALL_LANG_XOOPS_SALT = 'SALT' ;
191const _INSTALL_LANG_XOOPS_SALT_DESC = "This plays a supplementary role to generate secret code and token. You don't need to change the default value." ;
192
193const _INSTALL_HEADER_MESSAGE = 'Please follow the onscreen instructions to install.' ;