-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompat.php
30 lines (26 loc) · 848 Bytes
/
compat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) exit('');
$dh = opendir(BASE.'compat');
while (($file = readdir($dh)) !== false) {
if (is_file(BASE.'compat/'.$file) && substr($file,-4,4) == '.php') {
// Include each file in compat/, each of which is a function redefinition for older version of PHP
include_once(BASE.'compat/'.$file);
}
}
?>