]> Joshua Wise's Git repositories - patchfork.git/blame_incremental - inc/function_test.php
initial import from pitchfork-0.5.5
[patchfork.git] / inc / function_test.php
... / ...
CommitLineData
1<?php
2/*
3 Pitchfork Music Player Daemon Client
4 Copyright (C) 2007 Roger Bystrøm
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; version 2 of the License.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18*/
19
20 /* test for required stuff */
21 $fn_prob = false;
22
23 foreach(array("simplexml_load_string", "simplexml_load_file") as $fn) {
24 if(!function_exists($fn)) {
25 $fn_prob = $fn_prob?"$fn_prob $fn":"$fn";
26 }
27 }
28
29 if($fn_prob) {
30 echo "You are missing function(s): $fn_prob. Cowardly bailing out..\n";
31 echo "This means that your php installation is either compiled without simplexml support or you have an old version of PHP. Version 5.1.3 or later is required.\n";
32 exit();
33 }
34
35?>
This page took 0.022365 seconds and 4 git commands to generate.