Update to PEAR 1.7.2, Image_Canvas 0.3.1, Image_Color 1.0.3, Image_Graph 0.7.2, XML_Parser 1.3.1.
Removed PHP_Compat, and references to it. Removed ionCube/Zend/mmCache compatibility checks in test.php script. Changed minimum PHP requirement to 5.0 in test.php script.
This commit is contained in:
@@ -154,7 +154,6 @@ class email_piping
|
||||
$filecontent = imap_fetchbody($mbox,$msg,$file+2);
|
||||
if(empty($filecontent)) return false;
|
||||
$tmp = PATH_FILES.'/'. md5('piping'.$filename.microtime());
|
||||
require_once('includes/pear/Compat/Function/file_put_contents.php');
|
||||
file_put_contents($tmp,$filecontent);
|
||||
$this->attachments[$msg][] = Array('tmp'=>$tmp, 'file'=>$filename, 'type'=> $filetype);
|
||||
}
|
||||
@@ -267,4 +266,4 @@ class email_piping
|
||||
return string;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@@ -62,7 +62,6 @@ class CORE_import
|
||||
}
|
||||
|
||||
# open the file for parsing
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
$data = file_get_contents($this->file);
|
||||
$rows = explode("\r\n", $data);
|
||||
|
||||
@@ -142,7 +141,6 @@ class CORE_import
|
||||
{
|
||||
global $C_debug;
|
||||
$this->file = PATH_FILES.$VAR['file'];
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
$data = file_get_contents($this->file);
|
||||
$rows = explode("\r\n", $data);
|
||||
|
||||
@@ -242,7 +240,6 @@ class CORE_import
|
||||
{
|
||||
global $C_debug;
|
||||
$this->file = PATH_FILES.$VAR['file'];
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
$data = file_get_contents($this->file);
|
||||
$rows = explode("\r\n", $data);
|
||||
|
||||
@@ -342,4 +339,4 @@ class CORE_import
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@@ -34,7 +34,6 @@ $fp = fopen('http://agileco.com/Version.txt', "r");
|
||||
$abv = fread($fp, 255);
|
||||
fclose($fp);
|
||||
# get encoding version
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
$tmp = file_get_contents(PATH_AGILE.'index.php');
|
||||
|
||||
if(eregi('ioncube', $tmp))
|
||||
@@ -73,4 +72,4 @@ $smarty->assign('version',$ver);
|
||||
$smarty->assign('ab_version',$abv);
|
||||
$smarty->assign('encoding_version',$enc);
|
||||
$smarty->assign('modules',@$module_arr);
|
||||
?>
|
||||
?>
|
||||
|
@@ -704,7 +704,6 @@ class invoice
|
||||
|
||||
# echo the custom tracking code to the screen:
|
||||
if(!is_file(PATH_FILES.'tracking.txt')) return false;
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
$tracking = file_get_contents(PATH_FILES.'tracking.txt');
|
||||
$tracking = ereg_replace('%%amount%%', "$total_amount", $tracking);
|
||||
$tracking = ereg_replace('%%invoice%%', $invoice, $tracking);
|
||||
@@ -4373,4 +4372,4 @@ class invoice
|
||||
$this->limit = $construct["construct"]["limit"];
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@@ -94,7 +94,6 @@ class module
|
||||
global $C_auth;
|
||||
if(!$C_auth->auth_method_by_name("module","upgrade")) return false;
|
||||
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
if(is_file(PATH_AGILE.'Version.txt'))
|
||||
$f['version']=trim(file_get_contents(PATH_AGILE.'Version.txt'));
|
||||
else
|
||||
@@ -114,9 +113,6 @@ class module
|
||||
### Get remote hash file and check for inconsitancys in local files
|
||||
function remote_update($VAR)
|
||||
{
|
||||
## Load file_get_contents function for older versions:
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
|
||||
$ver = $VAR['ver'];
|
||||
$mis=0;
|
||||
$md5=0;
|
||||
@@ -1521,4 +1517,4 @@ class module
|
||||
fclose($file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@@ -744,7 +744,6 @@ class Level_Base {
|
||||
*/
|
||||
function addFieldCriteria($sql, $bIsAggregate = false, $field = '')
|
||||
{
|
||||
require_once PATH_INCLUDES . 'pear/Compat/Function/stripos.php';
|
||||
$this->lev_setting['SQL_criteria'] =
|
||||
$this->addToFilter($this->lev_setting['SQL_criteria'],
|
||||
$sql, $bIsAggregate);
|
||||
@@ -870,7 +869,6 @@ class Level_Base {
|
||||
|
||||
function find_next_sql_keyword($sql,$offset=0)
|
||||
{
|
||||
require_once PATH_INCLUDES . 'pear/Compat/Function/stripos.php';
|
||||
$ret = false;
|
||||
if(is_string($sql) && is_numeric($offset)) {
|
||||
$arr = array(
|
||||
@@ -898,7 +896,6 @@ class Level_Base {
|
||||
|
||||
function shuffleSQL($sql, $groupBy='')
|
||||
{
|
||||
require_once PATH_INCLUDES . 'pear/Compat/Function/stripos.php';
|
||||
if( ($p=stripos($sql,'HAVING')) !== false) {
|
||||
# found a having clause
|
||||
$leading = '';
|
||||
@@ -1057,4 +1054,4 @@ class Level_Base {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@@ -537,7 +537,6 @@ class ticket
|
||||
// insert any attachments
|
||||
if(!empty($arr['attach']) && is_array($arr['attach'])) {
|
||||
foreach($arr['attach'] as $attach) {
|
||||
require_once('includes/pear/Compat/Function/file_get_contents.php');
|
||||
@$data = file_get_contents($attach['tmp']);
|
||||
if(!empty($data)) {
|
||||
// get file size
|
||||
@@ -2708,4 +2707,4 @@ class ticket
|
||||
$this->limit = $construct["construct"]["limit"];
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user