1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Moved xmlrpc class to handlers as it's used by multiple plugins. removed deprecated forum_management.php file.

This commit is contained in:
CaMer0n
2009-10-20 21:02:09 +00:00
parent 2cd4a5f557
commit 8415a49036
8 changed files with 25 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
<?php
// by Edd Dumbill (C) 1999-2002
// <edd@usefulinc.com>
// $Id: xmlrpc.inc,v 1.1 2009-10-20 03:49:22 e107coders Exp $
// $Id: xmlrpc.inc,v 1.1 2009-10-20 21:02:09 e107coders Exp $
// Copyright (c) 1999,2000,2002 Edd Dumbill.
// All rights reserved.

View File

@@ -3,7 +3,7 @@
* PHP-XMLRPC "wrapper" functions
* Generate stubs to transparently access xmlrpc methods as php functions and viceversa
*
* @version $Id: xmlrpc_wrappers.inc,v 1.1 2009-10-20 03:49:22 e107coders Exp $
* @version $Id: xmlrpc_wrappers.inc,v 1.1 2009-10-20 21:02:09 e107coders Exp $
* @author Gaetano Giunta
* @copyright (C) 2006-2009 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt

View File

@@ -1,7 +1,7 @@
<?php
// by Edd Dumbill (C) 1999-2002
// <edd@usefulinc.com>
// $Id: xmlrpcs.inc,v 1.1 2009-10-20 03:49:22 e107coders Exp $
// $Id: xmlrpcs.inc,v 1.1 2009-10-20 21:02:09 e107coders Exp $
// Copyright (c) 1999,2000,2002 Edd Dumbill.
// All rights reserved.

View File

@@ -1,48 +0,0 @@
<?php
/*
* e107 website system
*
* Copyright ( c ) 2001-2008 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Custom forum install/uninstall/update routines
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_management.php,v $
* $Revision: 1.3 $
* $Date: 2009-08-08 07:11:50 $
* $Author: marj_nl_fr $
*
*/
class forum_management
{
function forum_install_pre(&$var)
{
print_a($var);
echo "custom install 'pre' function<br /><br />";
}
function forum_install_post(&$var)
{
global $sql;
echo "Setting all user_forums to 0 <br />";
$sql -> db_Update("user", "user_forums='0'");
}
function forum_uninstall(&$var)
{
global $sql;
$sql -> db_Update("user", "user_forums='0'");
}
function forum_upgrade(&$var)
{
global $sql;
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
{
$qry = "ALTER TABLE #forum ADD forum_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;";
$sql->db_Select_gen($qry);
}
}
}

View File

@@ -46,7 +46,9 @@ if(!plugInstalled('gsitemap'))
// include the XML-RPC class library
require_once('xmlrpc/xmlrpc.inc');
include (e_HANDLER.'xmlrpc/xmlrpc.inc');
include (e_HANDLER.'xmlrpc/xmlrpcs.inc');
include (e_HANDLER.'xmlrpc/xmlrpc_wrappers.inc');
class Weblog_Pinger {
// Weblogs.Com XML-RPC settings

View File

@@ -11,9 +11,9 @@ if (!e107::isInstalled('metaweblog'))
header("location:".e_BASE."index.php");
}
include (e_PLUGIN.'metaweblog/xmlrpc.inc');
include (e_PLUGIN.'metaweblog/xmlrpcs.inc');
include (e_PLUGIN.'metaweblog/xmlrpc_wrappers.inc');
include (e_HANDLER.'xmlrpc/xmlrpc.inc');
include (e_HANDLER.'xmlrpc/xmlrpcs.inc');
include (e_HANDLER.'xmlrpc/xmlrpc_wrappers.inc');
//general note: XMLRPC method functions parameters
//have this rule: 1st parameter is the type of the OUT data (result: array,struct,etc), from 2nd are the IN parameters

View File

@@ -9,8 +9,8 @@
* e107 Release Plugin
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/release/admin_config.php,v $
* $Revision: 1.1 $
* $Date: 2009-09-29 00:03:01 $
* $Revision: 1.2 $
* $Date: 2009-10-20 21:02:02 $
* $Author: e107coders $
*
*/
@@ -26,6 +26,7 @@ $ef = new efeed;
if(varset($_POST['update']) || varset($_POST['create']))
{
$id = intval($_POST['record_id']);
$ef->submitPage($id);
}

View File

@@ -9,8 +9,8 @@
* Plugin Administration - gsitemap
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/admin_config.php,v $
* $Revision: 1.8 $
* $Date: 2009-10-12 06:38:01 $
* $Revision: 1.9 $
* $Date: 2009-10-20 21:02:02 $
* $Author: e107coders $
*
*/
@@ -191,6 +191,7 @@ class tinymce
function renderValue($key,$row)
{
$att = $this->fields[$key];
$frm = e107::getForm();
if($key == "options")
{
@@ -200,6 +201,16 @@ class tinymce
return $text;
}
if($key == "tinymce_userclass")
{
return $frm->uc_label($row[$key]);
}
if($key == "tinymce_plugins")
{
return str_replace(",","<br />",$row[$key]);
}
switch($att['type'])
{
case 'url':