Merge lp:~alexharrington/xibo/369674-1.1 into lp:~xibo-maintainers/xibo/encke

Proposed by Alex Harrington
Status: Merged
Merged at revision: not available
Proposed branch: lp:~alexharrington/xibo/369674-1.1
Merge into: lp:~xibo-maintainers/xibo/encke
Diff against target: None lines
To merge this branch: bzr merge lp:~alexharrington/xibo/369674-1.1
Reviewer Review Type Date Requested Status
Xibo Maintainters Pending
Review via email: mp+6043@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'server/config/config.class.php'
2--- server/config/config.class.php 2009-04-01 21:46:55 +0000
3+++ server/config/config.class.php 2009-04-30 08:38:28 +0000
4@@ -120,7 +120,7 @@
5 $output .= '<div class="checks">';
6
7 // Check for PHP version
8- $message = 'PHP Version 5.0.2 or later';
9+ $message = 'PHP Version 5.2.4 or later';
10
11 if ($this->CheckPHP())
12 {
13@@ -133,7 +133,7 @@
14 $output .= $imgBad.$message.'<br />';
15 $output .= <<<END
16 <div class="check_explain">
17- <p>Xibo requires PHP version 5.0.2 or later.</p>
18+ <p>Xibo requires PHP version 5.2.4 or later.</p>
19 </div>
20 END;
21 }
22@@ -327,7 +327,7 @@
23 */
24 function CheckPHP()
25 {
26- return (version_compare("5",phpversion(), "<="));
27+ return (version_compare("5.2.4",phpversion(), "<="));
28 }
29
30 /**
31
32=== modified file 'server/install.php'
33--- server/install.php 2009-04-01 21:04:48 +0000
34+++ server/install.php 2009-04-30 08:38:28 +0000
35@@ -22,7 +22,7 @@
36 DEFINE('XIBO', true);
37
38 if (! checkPHP()) {
39- die('Xibo requires PHP 5.0.2 or later');
40+ die('Xibo requires PHP 5.2.4 or later');
41 }
42
43 include('lib/app/kit.class.php');
44@@ -679,6 +679,6 @@
45 }
46
47 function checkPHP() {
48- return (version_compare("5",phpversion(), "<="));
49+ return (version_compare("5.2.4",phpversion(), "<="));
50 }
51 ?>
52
53=== modified file 'server/upgrade.php'
54--- server/upgrade.php 2009-04-01 21:04:48 +0000
55+++ server/upgrade.php 2009-04-30 08:38:28 +0000
56@@ -289,36 +289,11 @@
57
58 # Functions
59
60-function checkFsPermissions() {
61- # Check for appropriate filesystem permissions
62- return (is_writable("install.php") && (is_writable("settings.php") || is_writable(".")));
63-}
64-
65 function checkPHP() {
66 # Check PHP version > 5
67- return (version_compare("5",phpversion(), "<="));
68-}
69-
70-function checkMySQL() {
71- # Check PHP has MySQL module installed
72- return extension_loaded("mysql");
73-}
74-
75-function checkJson() {
76- # Check PHP has JSON module installed
77- return extension_loaded("json");
78-}
79-
80-function checkGd() {
81- # Check PHP has JSON module installed
82- return extension_loaded("gd");
83-}
84-
85-function checkCal() {
86- # Check PHP has JSON module installed
87- return extension_loaded("calendar");
88-}
89-
90+ return (version_compare("5.2.4",phpversion(), "<="));
91+}
92+
93 function reportError($step, $message, $button_text="&lt; Back") {
94 $_SESSION['step'] = $step;
95 ?>
96@@ -552,13 +527,6 @@
97 }
98 }
99
100-//function __autoload($class_name) {
101-// if (substr($class_name,0,4) == "Step") {
102-// $class_name = substr($class_name,4);
103-// require_once install/database/$class_name . '.php';
104-// }
105-//}
106-
107 class UpgradeStep
108 {
109 protected $db;

Subscribers

People subscribed via source and target branches