1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

replaced calls to deprecated plugInstalled() with e107::isInstalled()

This commit is contained in:
Cameron
2015-02-07 13:38:29 -08:00
parent 1f17a57d4e
commit fbb0b63ae9
37 changed files with 39 additions and 39 deletions

View File

@@ -189,7 +189,7 @@ if(isset($_POST['updateprefs']))
} }
} }
if (plugInstalled('alt_auth')) if (e107::isInstalled('alt_auth'))
{ {
$authlist[] = "e107"; $authlist[] = "e107";
$handle = opendir(e_PLUGIN."alt_auth"); $handle = opendir(e_PLUGIN."alt_auth");

View File

@@ -1006,7 +1006,7 @@ function update_706_to_800($type='')
// Plugin tables whose definition needs changing significantly // Plugin tables whose definition needs changing significantly
foreach ($pluginChangedTables as $plugName => $plugList) foreach ($pluginChangedTables as $plugName => $plugList)
{ {
if (plugInstalled($plugName)) if (e107::isInstalled($plugName))
{ {
$ttc = explode(',',$plugList); $ttc = explode(',',$plugList);
foreach ($ttc as $ct) foreach ($ttc as $ct)

View File

@@ -1517,7 +1517,7 @@ class themeHandler
{ {
$plug = trim($p['@attributes']['name']); $plug = trim($p['@attributes']['name']);
if(plugInstalled($plug)) if(e107::isInstalled($plug))
{ {
$text .= $plug." ".ADMIN_TRUE_ICON; $text .= $plug." ".ADMIN_TRUE_ICON;
} }

View File

@@ -12,7 +12,7 @@
require_once("../../class2.php"); require_once("../../class2.php");
if (!plugInstalled('chatbox_menu') || !getperms("P")) if (!e107::isInstalled('chatbox_menu') || !getperms("P"))
{ {
header("Location: ".e_BASE."index.php"); header("Location: ".e_BASE."index.php");
exit; exit;

View File

@@ -9,7 +9,7 @@
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
if (!plugInstalled('chatbox_menu')) if (!e107::isInstalled('chatbox_menu'))
{ {
header('Location: '.e_BASE.'index.php'); header('Location: '.e_BASE.'index.php');
exit; exit;

View File

@@ -30,7 +30,7 @@ $pref = e107::getPref();
if (!plugInstalled('chatbox_menu')) if (!e107::isInstalled('chatbox_menu'))
{ {
return ''; return '';
} }

View File

@@ -18,7 +18,7 @@ $eplug_admin = true;
define('DOWNLOAD_DEBUG',FALSE); define('DOWNLOAD_DEBUG',FALSE);
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('download')) if (!getperms("P") || !e107::isInstalled('download'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit() ; exit() ;

View File

@@ -16,7 +16,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
/*if(!plugInstalled('gsitemap')) /*if(!e107::isInstalled('gsitemap'))
{ {
return; return;
}*/ }*/

View File

@@ -10,7 +10,7 @@
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('featurebox')) if (!getperms("P") || !e107::isInstalled('featurebox'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;

View File

@@ -93,7 +93,7 @@ if(isset($_GET['f']))
e107::getScBatch('view', 'forum')->setScVar('thread', $thread); e107::getScBatch('view', 'forum')->setScVar('thread', $thread);
$pm_installed = plugInstalled('pm'); $pm_installed = e107::isInstalled('pm');
//Only increment thread views if not being viewed by thread starter //Only increment thread views if not being viewed by thread starter
if (USER && (USERID != $thread->threadInfo['thread_user'] || $thread->threadInfo['thread_total_replies'] > 0) || !$thread->noInc) if (USER && (USERID != $thread->threadInfo['thread_user'] || $thread->threadInfo['thread_total_replies'] > 0) || !$thread->noInc)

View File

@@ -163,7 +163,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
function sc_privmessage() function sc_privmessage()
{ {
if(plugInstalled('pm') && ($this->postInfo['post_user'] > 0)) if(e107::isInstalled('pm') && ($this->postInfo['post_user'] > 0))
{ {
return e107::getParser()->parseTemplate("{SENDPM={$this->postInfo['post_user']}}"); return e107::getParser()->parseTemplate("{SENDPM={$this->postInfo['post_user']}}");
} }

View File

@@ -17,7 +17,7 @@
$eplug_admin = true; $eplug_admin = true;
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('gallery')) if (!getperms("P") || !e107::isInstalled('gallery'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit() ; exit() ;

View File

@@ -23,7 +23,7 @@
require_once("../../class2.php"); require_once("../../class2.php");
if (!plugInstalled('gallery')) if (!e107::isInstalled('gallery'))
{ {
header('location:'.e_BASE.'index.php'); header('location:'.e_BASE.'index.php');
exit; exit;

View File

@@ -10,7 +10,7 @@
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if(!getperms("P") || !plugInstalled('gsitemap')) if(!getperms("P") || !e107::isInstalled('gsitemap'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit(); exit();
@@ -382,7 +382,7 @@ class gsitemap
/* forums ... */ /* forums ... */
if(plugInstalled('forum')) if(e107::isInstalled('forum'))
{ {
$sql -> select("forum", "*", "forum_parent!='0' ORDER BY forum_order ASC"); $sql -> select("forum", "*", "forum_parent!='0' ORDER BY forum_order ASC");
$nfArray = $sql -> db_getList(); $nfArray = $sql -> db_getList();
@@ -397,7 +397,7 @@ class gsitemap
/* DEPRECATED content pages ... /* DEPRECATED content pages ...
if(plugInstalled('content')) if(e107::isInstalled('content'))
{ {
$sql -> select("pcontent", "content_id, content_heading", "LEFT(content_parent,1) = '0' ORDER BY content_heading"); $sql -> select("pcontent", "content_id, content_heading", "LEFT(content_parent,1) = '0' ORDER BY content_heading");
$nfArray = $sql -> db_getList(); $nfArray = $sql -> db_getList();

View File

@@ -16,7 +16,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if(!plugInstalled('gsitemap')) if(!e107::isInstalled('gsitemap'))
{ {
return ''; return '';
} }

View File

@@ -38,7 +38,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
if(!plugInstalled('gsitemap')) if(!e107::isInstalled('gsitemap'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit(); exit();

View File

@@ -28,7 +28,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
// if (!plugInstalled('linkwords')) exit; // This will completely break a site during upgrades. // if (!e107::isInstalled('linkwords')) exit; // This will completely break a site during upgrades.
define('LW_CACHE_ENABLE', FALSE); define('LW_CACHE_ENABLE', FALSE);

View File

@@ -22,7 +22,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
// if (!plugInstalled('linkwords')) exit; // This will break a site completely under some circumstance. // if (!e107::isInstalled('linkwords')) exit; // This will break a site completely under some circumstance.
class e_linkwords class e_linkwords

View File

@@ -24,7 +24,7 @@
//include and require several classes //include and require several classes
require_once("../../class2.php"); require_once("../../class2.php");
if(!getperms("1") || !plugInstalled('list_new')) if(!getperms("1") || !e107::isInstalled('list_new'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit ; exit ;

View File

@@ -24,7 +24,7 @@
require_once("../../class2.php"); require_once("../../class2.php");
if (!plugInstalled('list_new')) if (!e107::isInstalled('list_new'))
{ {
header("Location: ".e_BASE."index.php"); header("Location: ".e_BASE."index.php");
exit; exit;

View File

@@ -527,7 +527,7 @@ class listclass
} }
else else
{ {
if (plugInstalled($file)) if (e107::isInstalled($file))
{ {
if(is_readable(e_PLUGIN.$file."/e_list.php")) if(is_readable(e_PLUGIN.$file."/e_list.php"))
{ {

View File

@@ -24,7 +24,7 @@
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('list_new')) if (!e107::isInstalled('list_new'))
{ {
return; return;
} }

View File

@@ -24,7 +24,7 @@
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('list_new')) if (!e107::isInstalled('list_new'))
{ {
return; return;
} }

View File

@@ -11,7 +11,7 @@
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('newsfeed')) if (!getperms("P") || !e107::isInstalled('newsfeed'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;

View File

@@ -16,7 +16,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('newsfeed')) if (!e107::isInstalled('newsfeed'))
{ {
return; return;
} }

View File

@@ -15,7 +15,7 @@
* *
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('newsfeed')) if (!e107::isInstalled('newsfeed'))
{ {
return; return;
} }

View File

@@ -15,7 +15,7 @@
* *
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
if (!plugInstalled('newsfeed')) if (!e107::isInstalled('newsfeed'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;

View File

@@ -24,7 +24,7 @@ feed refresh time has expired, the cache is updated.
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('newsfeed')) if (!e107::isInstalled('newsfeed'))
{ {
return; return;
} }

View File

@@ -15,7 +15,7 @@
* *
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('newsfeed')) if (!e107::isInstalled('newsfeed'))
{ {
return ''; return '';
} }

View File

@@ -10,7 +10,7 @@
require_once("../../class2.php"); require_once("../../class2.php");
if (!is_object($tp)) $tp = new e_parse; if (!is_object($tp)) $tp = new e_parse;
if (!getperms("P") || !plugInstalled('poll')) if (!getperms("P") || !e107::isInstalled('poll'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;

View File

@@ -15,7 +15,7 @@
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!plugInstalled('poll')) if (!e107::isInstalled('poll'))
{ {
header("Location: ".e_BASE."index.php"); header("Location: ".e_BASE."index.php");
exit; exit;

View File

@@ -13,7 +13,7 @@
*/ */
require_once('../../class2.php'); require_once('../../class2.php');
if (!plugInstalled('poll')) if (!e107::isInstalled('poll'))
{ {
header('Location: '.e_BASE.'index.php'); header('Location: '.e_BASE.'index.php');
exit; exit;

View File

@@ -15,7 +15,7 @@
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
if (!plugInstalled('rss_menu')) if (!e107::isInstalled('rss_menu'))
{ {
return ''; return '';
} }

View File

@@ -13,7 +13,7 @@
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('trackback')) if (!getperms("P") || !e107::isInstalled('trackback'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit() ; exit() ;

View File

@@ -17,7 +17,7 @@
$eplug_admin = true; $eplug_admin = true;
require_once("../../class2.php"); require_once("../../class2.php");
if (!getperms("P") || !plugInstalled('trackback') || !$pref['trackbackEnabled']) if (!getperms("P") || !e107::isInstalled('trackback') || !$pref['trackbackEnabled'])
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;

View File

@@ -15,7 +15,7 @@
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
if (!plugInstalled('trackback')) if (!e107::isInstalled('trackback'))
{ {
exit(); exit();
} }

View File

@@ -15,7 +15,7 @@
* *
*/ */
require_once("class2.php"); require_once("class2.php");
if(!plugInstalled('gsitemap')) if(!e107::isInstalled('gsitemap'))
{ {
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit(); exit();