Update of /cvsroot/stack/stack-1-0/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14725/scripts
Modified Files:
Tag: development_xmlrqp
stackUtility.php
Log Message:
Index: stackUtility.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/stackUtility.php,v
retrieving revision 1.30
retrieving revision 1.30.2.1
diff -C2 -d -r1.30 -r1.30.2.1
*** stackUtility.php 25 Jul 2005 11:24:08 -0000 1.30
--- stackUtility.php 28 Jul 2005 13:18:27 -0000 1.30.2.1
***************
*** 16,20 ****
// (1) remove stackData.php - and its reference in stackstd.php
// (2) remove stackSocketSend.php - and its reference in stackstd.php
- // (3) Add a way of putting the standard GNUplot header in stackstd.php
if ($stack_stand_alone) {
require_once("{$stack_root}/scripts/moodlelib.php");
--- 16,19 ----
***************
*** 950,954 ****
echo "<body>\n";
echo "<table><tr>\n";
! echo "<td><img src=\"{$stack_web_url}pics/logo.png\" width=\"120\" alt=\"".get_string('StackLogo','stack','')."\" /></td>\n";
echo "<td><h1><font face=\"arial\">STACK</font></h1></td>\n</tr></table>\n<h1>$title</h1>\n";
}
--- 949,953 ----
echo "<body>\n";
echo "<table><tr>\n";
! echo "<td><img src=\"{$stack_web_url}pics/logo.png\" width=\"115\" alt=\"".get_string('StackLogo','stack','')."\" /></td>\n";
echo "<td><h1><font face=\"arial\">STACK</font></h1></td>\n</tr></table>\n<h1>$title</h1>\n";
}
***************
*** 1054,1056 ****
--- 1053,1077 ----
}
+ /**
+ * Retrieves the PHP version and returns to the caller the major revision
+ *
+ * @param void
+ * @return int phpVer The major revision of PHP in use
+ * false if this information not available
+ *
+ */
+ function stack_php_version() {
+
+ $phpVer = phpversion(); //Retrieve PHP version string
+
+ //Retreive and return major revision of PHP
+ if (!empty($phpVer)) {
+ return $phpVer{0};
+ }
+
+ else {
+ return false;
+ }
+ }
+
?>
|