public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Added checks for php 5.2 at the top of index.php and install/index.php.  
It normally wouldn't break until 2/3 through the installation.

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4308 
3d254a34-79dc-0310-9e5f-be208747d8a0
tedkulp (author)
Sun Jan 27 06:47:14 -0800 2008
commit  f1f000be6995f27739d4bf60d96805675a1e00c1
tree    8aface83d89586a5e23d3481ee3687a8df1be52f
parent  815901c5e050de9a021bc33d9f6eb39e550666ca
...
21
22
23
 
 
 
 
 
 
24
25
26
...
21
22
23
24
25
26
27
28
29
30
31
32
0
@@ -21,6 +21,12 @@
0
 /**
0
  * Entry point for all non-admin pages
0
  **/
0
+//Cut them off at the pass...
0
+if (version_compare(phpversion(), "5.2", "<"))
0
+{
0
+ echo 'CMS Made Simple 2.0 requires php 5.2 and above to run. Please upgrade your system before proceeding.';
0
+ exit;
0
+}
0
 
0
 //Where are we?
0
 $dirname = dirname(__FILE__);
...
18
19
20
 
 
 
 
 
 
 
21
22
23
...
205
206
207
208
209
 
...
18
19
20
21
22
23
24
25
26
27
28
29
30
...
212
213
214
 
215
216
0
@@ -18,6 +18,13 @@
0
 #
0
 #$Id$
0
 
0
+//Cut them off at the pass...
0
+if (version_compare(phpversion(), "5.2", "<"))
0
+{
0
+ echo 'CMS Made Simple 2.0 requires php 5.2 and above to run. Please upgrade your system before proceeding.';
0
+ exit;
0
+}
0
+
0
 require_once('../lib/cmsms.api.php');
0
 require_once('lib/class.cms_install_operations.php');
0
 
0
@@ -205,4 +212,4 @@ function test_connection($params, $ajax = true)
0
 }
0
 
0
 # vim:ts=4 sw=4 noet
0
-?>
0
\ No newline at end of file
0
+?>

Comments

    No one has commented yet.