From f0f9ee8b6187f1ed897a50d47bca98f8fb846017 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 8 Jun 2008 15:04:57 +0000 Subject: [PATCH] move some stuff from index.php to core/util, to make alternative bootstrappers easier (eg, cli) git-svn-id: file:///home/shish/svn/shimmie2/trunk@887 7f39781d-f577-437e-ae19-be835c7a54ca --- core/util.inc.php | 28 ++++++++++++++++++++++++++++ index.php | 24 +++--------------------- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index aceac770..e1372eb2 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -117,6 +117,17 @@ function make_link($page=null, $query=null) { * Misc * \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +function version_check() { + if(version_compare(PHP_VERSION, "5.0.0") == -1) { + print <<