1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

PHP notices, header standards and phpDocs

This commit is contained in:
secretr
2012-01-11 14:54:47 +00:00
parent 91b5fe7f58
commit c5f682da90
2 changed files with 39 additions and 26 deletions

View File

@@ -1,21 +1,28 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2008-2012 e107 Inc (e107.org)
| Copyright (C) 2008-2009 e107 Inc (e107.org) * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| *
| * $URL$
| Released under the terms and conditions of the * $Id$
| GNU General Public License (http://gnu.org). *
| */
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
| $Revision$ if (!defined('e107_INIT')) { exit; }
| $Date$
| $Author$
+----------------------------------------------------------------------------+ /**
*/ *
* @package e107
* @category e107_handlers
* @version $Id$
* @author e107inc
*
* Plugin administration area
*/
require_once("../class2.php"); require_once("../class2.php");
if (!getperms("Z")) if (!getperms("Z"))
@@ -202,7 +209,7 @@ class pluginManager{
$plugin = e107::getPlugin(); $plugin = e107::getPlugin();
$tp = e107::getParser(); $tp = e107::getParser();
$sql = e107::getDb(); $sql = e107::getDb();
$eplug_folder = '';
if(!isset($_POST['uninstall_confirm'])) if(!isset($_POST['uninstall_confirm']))
{ // $id is already an integer { // $id is already an integer
$this->pluginConfirmUninstall($this->id); $this->pluginConfirmUninstall($this->id);

View File

@@ -2,23 +2,29 @@
/* /*
* e107 website system * e107 website system
* *
* Copyright (C) 2008-2009 e107 Inc (e107.org) * Copyright (C) 2008-2012 e107 Inc (e107.org)
* Released under the terms and conditions of the * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
* Administration - Site Maintenance
*
* $URL$ * $URL$
* $Id$ * $Id$
* *
*/ */
if (!defined('e107_INIT')) if (!defined('e107_INIT')) { exit; }
{
exit;
}
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_plugin.php');
/**
*
* @package e107
* @category e107_handlers
* @version $Id$
* @author e107inc
*
* Plugin administration handler
*/
e107::coreLan('plugin', true);
class e107plugin class e107plugin
{ {
@@ -1524,7 +1530,7 @@ class e107plugin
$attrib = $link['@attributes']; $attrib = $link['@attributes'];
$linkName = (defset($link['@value'])) ? constant($link['@value']) : $link['@value']; $linkName = (defset($link['@value'])) ? constant($link['@value']) : $link['@value'];
$url = e_PLUGIN_ABS.$this->plugFolder."/".$attrib['url']; $url = e_PLUGIN_ABS.$this->plugFolder."/".$attrib['url'];
if ($attrib['primary'] == 'true') if (isset($attrib['primary']) && $attrib['primary'] == 'true')
{ {
$this->plugConfigFile = $url; $this->plugConfigFile = $url;
} }