Commit 12a6aabf authored by lrargerich's avatar lrargerich

Changes from version 0.9 to version 0.95

parent f1b4d782
......@@ -55,8 +55,11 @@ tiki/Smarty/plugins/modifier.truncate.php -text
tiki/Smarty/plugins/modifier.upper.php -text
tiki/Smarty/plugins/modifier.wordwrap.php -text
tiki/Smarty/plugins/shared.make_timestamp.php -text
tiki/article_image.php -text
tiki/changelog.txt -text
tiki/db/tiki-db.php -text
tiki/db/tiki.sql -text
tiki/db/tiki_0.9to0.95.sql -text
tiki/doc/tiki09.doc -text
tiki/doc/tiki09.pdf -text
tiki/dump/new.tar -text
......@@ -81,6 +84,9 @@ tiki/lib/class_calendar.php -text
tiki/lib/tar.class.php -text
tiki/lib/tikilib.php -text
tiki/lib/userslib.php -text
tiki/lib/xmlrpc.inc -text
tiki/lib/xmlrpcs.inc -text
tiki/log.txt -text
tiki/modules/cache/mod-Oso.tpl.cache -text
tiki/modules/cache/mod-Un[!!-~]pato.tpl.cache -text
tiki/modules/cache/mod-admin_menu.tpl.cache -text
......@@ -141,8 +147,10 @@ tiki/templates/modules/mod-user_pages.tpl -text
tiki/templates/modules/mod-user_pages.tpl.nocache -text
tiki/templates/modules/user_module.tpl -text
tiki/templates/tiki-admin.tpl -text
tiki/templates/tiki-admin_hotwords.tpl -text
tiki/templates/tiki-admin_links.tpl -text
tiki/templates/tiki-admin_modules.tpl -text
tiki/templates/tiki-admin_topics.tpl -text
tiki/templates/tiki-admingroups.tpl -text
tiki/templates/tiki-adminusers.tpl -text
tiki/templates/tiki-adminusers_old.tpl -text
......@@ -150,25 +158,37 @@ tiki/templates/tiki-app_bar.tpl -text
tiki/templates/tiki-assignpermission.tpl -text
tiki/templates/tiki-assignuser.tpl -text
tiki/templates/tiki-backlinks.tpl -text
tiki/templates/tiki-blog_post.tpl -text
tiki/templates/tiki-bot_bar.tpl -text
tiki/templates/tiki-browse_gallery.tpl -text
tiki/templates/tiki-browse_gallery_theme.tpl -text
tiki/templates/tiki-browse_image.tpl -text
tiki/templates/tiki-edit_article.tpl -text
tiki/templates/tiki-edit_blog.tpl -text
tiki/templates/tiki-edit_submission.tpl -text
tiki/templates/tiki-editpage.tpl -text
tiki/templates/tiki-featured_link.tpl -text
tiki/templates/tiki-galleries.tpl -text
tiki/templates/tiki-lastchanges.tpl -text
tiki/templates/tiki-likepages.tpl -text
tiki/templates/tiki-list_articles.tpl -text
tiki/templates/tiki-list_blogs.tpl -text
tiki/templates/tiki-list_cache.tpl -text
tiki/templates/tiki-list_gallery.tpl -text
tiki/templates/tiki-list_posts.tpl -text
tiki/templates/tiki-list_submissions.tpl -text
tiki/templates/tiki-listpages.tpl -text
tiki/templates/tiki-page.tpl -text
tiki/templates/tiki-page_bar.tpl -text
tiki/templates/tiki-pagehistory.tpl -text
tiki/templates/tiki-pagepermissions.tpl -text
tiki/templates/tiki-preview.tpl -text
tiki/templates/tiki-preview_article.tpl -text
tiki/templates/tiki-preview_post.tpl -text
tiki/templates/tiki-print.tpl -text
tiki/templates/tiki-print_article.tpl -text
tiki/templates/tiki-ranking.tpl -text
tiki/templates/tiki-read_article.tpl -text
tiki/templates/tiki-register.tpl -text
tiki/templates/tiki-removepage.tpl -text
tiki/templates/tiki-rollback.tpl -text
......@@ -176,29 +196,44 @@ tiki/templates/tiki-searchresults.tpl -text
tiki/templates/tiki-show_page.tpl -text
tiki/templates/tiki-top_bar.tpl -text
tiki/templates/tiki-upload_image.tpl -text
tiki/templates/tiki-user_preferences.tpl -text
tiki/templates/tiki-userversions.tpl -text
tiki/templates/tiki-view_articles.tpl -text
tiki/templates/tiki-view_blog.tpl -text
tiki/templates/tiki-view_cache.tpl -text
tiki/templates/tiki.tpl -text
tiki/testrpc.php -text
tiki/tiki-admin.php -text
tiki/tiki-admin_hotwords.php -text
tiki/tiki-admin_links.php -text
tiki/tiki-admin_modules.php -text
tiki/tiki-admin_modules.tpl -text
tiki/tiki-admin_topics.php -text
tiki/tiki-admingroups.php -text
tiki/tiki-adminusers.php -text
tiki/tiki-adminusers_old.php -text
tiki/tiki-assignpermission.php -text
tiki/tiki-assignuser.php -text
tiki/tiki-backlinks.php -text
tiki/tiki-blog_post.php -text
tiki/tiki-browse_gallery.php -text
tiki/tiki-browse_image.php -text
tiki/tiki-edit_article.php -text
tiki/tiki-edit_blog.php -text
tiki/tiki-edit_submission.php -text
tiki/tiki-editarticle.php -text
tiki/tiki-editpage.php -text
tiki/tiki-featured_link.php -text
tiki/tiki-galleries.php -text
tiki/tiki-index.php -text
tiki/tiki-lastchanges.php -text
tiki/tiki-likepages.php -text
tiki/tiki-list_articles.php -text
tiki/tiki-list_blogs.php -text
tiki/tiki-list_cache.php -text
tiki/tiki-list_gallery.php -text
tiki/tiki-list_posts.php -text
tiki/tiki-list_submissions.php -text
tiki/tiki-listpages.php -text
tiki/tiki-login.php -text
tiki/tiki-logout.php -text
......@@ -206,8 +241,11 @@ tiki/tiki-modules.php -text
tiki/tiki-pagehistory.php -text
tiki/tiki-pagepermissions.php -text
tiki/tiki-pagesetup.php -text
tiki/tiki-pdf.php -text
tiki/tiki-print.php -text
tiki/tiki-print_article.php -text
tiki/tiki-ranking.php -text
tiki/tiki-read_article.php -text
tiki/tiki-register.php -text
tiki/tiki-removepage.php -text
tiki/tiki-rollback.php -text
......@@ -216,7 +254,12 @@ tiki/tiki-searchresults.php -text
tiki/tiki-setup.php -text
tiki/tiki-upload-image.php -text
tiki/tiki-upload_image.php -text
tiki/tiki-user_preferences.php -text
tiki/tiki-userversions.php -text
tiki/tiki-view_articles.php -text
tiki/tiki-view_blog.php -text
tiki/tiki-view_cache.php -text
tiki/tiki_admin_topics.php -text
tiki/tiki_pagepermissions.php -text
tiki/topic_image.php -text
tiki/xmlrpc.php -text
<?
// show_image.php
// application to display an image from the database with
// option to resize the image dynamically creating a thumbnail on the fly.
if(!isset($_REQUEST["id"])) {
die;
}
include_once('db/tiki-db.php');
include_once('lib/tikilib.php');
$tikilib = new Tikilib($dbTiki);
$data = $tikilib->get_article($_REQUEST["id"]);
$type=$data["image_type"];
$data = $data["image_data"];
header("Content-type: $type");
echo $data;
?>
\ No newline at end of file
Version 0.95 -Shaula-
* [NEW FEATURE] User preferences screen where users can set-up personal info, choose a theme
and they can also view their pages/blogs/articles.
* [FIX] Changed several layout problems specific to some browsers, fixed layout now
whould work ok with mozilla, IE and Netscape
* [CHANGE] Re-designed the admin screen to make it modular and clear
* [CHANGE] Allow HTML is now turned on unless checked out ir the user has tiki_p_allow_HTML permission
* [FIX] Fixed bugs in the modules administration screen that prevented editing & removing user modules
* [FIX] Fixed a bug with -=titlebars=- in wiki pages, now they work using the titlebar style from CSS
* [NEW FEATURE] Added featured links as a feature that can be disabled from the admin screen
* Modules for galleries and images are now not shown if the image galleries feature is disabled
* [FIX] Fixed several bugs regarding the appearance of ' characters in pages
* [NEW FEATURE] Added and option in the admin screen to turn off caching external pages
* [NEW FEATURE] Added and option in the admin screen to turn off caching external images
* [NEW FEATURE] Added the option to set-up modules for specific groups
* [NEW FEATURE] Added an option in the admin screen to show modules to all users ignoring groups
* [NEW FEATURE] Added hotwords allowing you to make some words appear as a link to a URL
* [NEW FEATURE] Added an option to turn on/off hotwords from the admins screen
* [NEW FEATURE] Added a SandBox a wikipage where no versions are stored to be used as a practice page
* [NEW FEATURE] Added an option to turn on/off the SandBox
* [FIX] Changed thumbnail generation to a new bicubic funcion producing better quality thumbnails (Jen Jensen)
* [FIX] Fixed a bug when links contain a question mark "?"
* [FIX] Fixed a bug when uploading images without entering any data
* [FIX] Fixed a bug with thumbnails
* [FIX] Fixed errors with unescaped characters in Wiki pages
Version 0.9 -Spica-
* First release of this application.
\ No newline at end of file
### ADDITIONS FROM VERSION 0.95
DROP TABLE IF EXISTS tiki_user_preferences;
create table tiki_user_preferences(
user varchar(200) not null,
prefName varchar(40) not null,
value varchar(250),
primary key(user,prefName)
);
DROP TABLE IF EXISTS tiki_hotwords;
create table tiki_hotwords(
word varchar(40) not null,
url varchar(255) not null,
primary key(word)
);
alter table tiki_modules add groups text;
DROP TABLE IF EXISTS tiki_blogs;
create table tiki_blogs(
blogId integer(8) not null auto_increment,
created integer(14),
lastModif integer(14),
title varchar(200),
description text,
user varchar(200),
public char(1),
posts integer(8),
maxPosts integer(8),
hits integer(8),
activity decimal(4,2),
primary key(blogId)
);
DROP TABLE IF EXISTS tiki_blog_posts;
create table tiki_blog_posts(
postId integer(8) not null auto_increment,
blogId integer(8) not null,
data text,
created integer(14),
user varchar(200),
primary key(postId)
);
DROP TABLE IF EXISTS tiki_blog_activity;
create table tiki_blog_activity(
blogId integer(8) not null,
day integer(14) not null,
posts integer(8),
primary key(blogId,day)
);
insert into users_permissions(permName,type,permDesc) values('tiki_p_create_blogs','tiki','Can create a blog');
insert into users_permissions(permName,type,permDesc) values('tiki_p_blog_post','tiki','Can post to a blog');
insert into users_permissions(permName,type,permDesc) values('tiki_p_blog_admin','tiki','Can admin blogs');
insert into users_permissions(permName,type,permDesc) values('tiki_p_edit_article','tiki','Can edit articles');
insert into users_permissions(permName,type,permDesc) values('tiki_p_remove_article','tiki','Can remove articles');
insert into users_permissions(permName,type,permDesc) values('tiki_p_read_article','tiki','Can read articles');
insert into users_permissions(permName,type,permDesc) values('tiki_p_submit_article','tiki','Can submit articles');
insert into users_permissions(permName,type,permDesc) values('tiki_p_edit_submission','tiki','Can edit submissions');
insert into users_permissions(permName,type,permDesc) values('tiki_p_remove_submission','tiki','Can remove submissions');
insert into users_permissions(permName,type,permDesc) values('tiki_p_approve_submission','tiki','Can approve submissions');
DROP TABLE IF EXISTS tiki_articles;
create table tiki_articles(
articleId integer(8) not null auto_increment,
title varchar(80),
authorName varchar(60),
topicId integer(14),
topicName varchar(40),
size integer(12),
useImage char(1),
image_name varchar(80),
image_type varchar(80),
image_size integer(14),
image_x integer(4),
image_y integer(4),
image_data longblob,
publishDate integer(14),
created integer(14),
heading text,
body longblob,
hash char(32),
author varchar(200),
reads integer(14),
votes integer(8),
points integer(14),
primary key(articleId)
);
DROP TABLE IF EXISTS tiki_submissions;
create table tiki_submissions(
subId integer(8) not null auto_increment,
title varchar(80),
authorName varchar(60),
topicId integer(14),
topicName varchar(40),
size integer(12),
useImage char(1),
image_name varchar(80),
image_type varchar(80),
image_size integer(14),
image_x integer(4),
image_y integer(4),
image_data longblob,
publishDate integer(14),
created integer(14),
heading text,
data longblob,
hash char(32),
author varchar(200),
reads integer(14),
votes integer(8),
points integer(14),
primary key(subId)
);
DROP TABLE IF EXISTS tiki_topics;
CREATE TABLE tiki_topics (
topicId integer(14) not null auto_increment,
name varchar(40),
image_name varchar(80),
image_type varchar(80),
image_size integer(14),
image_data longblob,
active char(1),
created integer(14),
primary key(topicId)
);
This diff is collapsed.
......@@ -366,6 +366,27 @@ class UsersLib {
$this->assign_user_to_group($user,'Registered');
return true;
}
function change_user_email($user,$email)
{
$query = "update users_users set email='$email' where login='$user'";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query,$result);
}
function get_user_password($user)
{
$query = "select password from users_users where login='$user'";
$pass = $this->db->getOne($query);
return $pass;
}
function change_user_password($user,$pass)
{
$query = "update users_users set password='$pass' where login='$user'";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query,$result);
}
function add_group($group,$desc)
{
......
This diff is collapsed.
<?php
// by Edd Dumbill (C) 1999-2001
// <[email protected]>
// $Id: xmlrpcs.inc,v 1.1 2002-10-15 15:42:38 lrargerich Exp $
// Copyright (c) 1999,2000,2001 Edd Dumbill.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
// with the distribution.
//
// * Neither the name of the "XML-RPC for PHP" nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
// XML RPC Server class
// requires: xmlrpc.inc
// listMethods: either a string, or nothing
$_xmlrpcs_listMethods_sig=array(array($xmlrpcArray, $xmlrpcString),
array($xmlrpcArray));
$_xmlrpcs_listMethods_doc='This method lists all the methods that the XML-RPC server knows how to dispatch';
function _xmlrpcs_listMethods($server, $m) {
global $xmlrpcerr, $xmlrpcstr, $_xmlrpcs_dmap;
$v=new xmlrpcval();
$dmap=$server->dmap;
$outAr=array();
for(reset($dmap); list($key, $val)=each($dmap); ) {
$outAr[]=new xmlrpcval($key, "string");
}
$dmap=$_xmlrpcs_dmap;
for(reset($dmap); list($key, $val)=each($dmap); ) {
$outAr[]=new xmlrpcval($key, "string");
}
$v->addArray($outAr);
return new xmlrpcresp($v);
}
$_xmlrpcs_methodSignature_sig=array(array($xmlrpcArray, $xmlrpcString));
$_xmlrpcs_methodSignature_doc='Returns an array of known signatures (an array of arrays) for the method name passed. If no signatures are known, returns a none-array (test for type != array to detect missing signature)';
function _xmlrpcs_methodSignature($server, $m) {
global $xmlrpcerr, $xmlrpcstr, $_xmlrpcs_dmap;
$methName=$m->getParam(0);
$methName=$methName->scalarval();
if (ereg("^system\.", $methName)) {
$dmap=$_xmlrpcs_dmap; $sysCall=1;
} else {
$dmap=$server->dmap; $sysCall=0;
}
// print "<!-- ${methName} -->\n";
if (isset($dmap[$methName])) {
if ($dmap[$methName]["signature"]) {
$sigs=array();
$thesigs=$dmap[$methName]["signature"];
for($i=0; $i<sizeof($thesigs); $i++) {
$cursig=array();
$inSig=$thesigs[$i];
for($j=0; $j<sizeof($inSig); $j++) {
$cursig[]=new xmlrpcval($inSig[$j], "string");
}
$sigs[]=new xmlrpcval($cursig, "array");
}
$r=new xmlrpcresp(new xmlrpcval($sigs, "array"));
} else {
$r=new xmlrpcresp(new xmlrpcval("undef", "string"));
}
} else {
$r=new xmlrpcresp(0,
$xmlrpcerr["introspect_unknown"],
$xmlrpcstr["introspect_unknown"]);
}
return $r;
}
$_xmlrpcs_methodHelp_sig=array(array($xmlrpcString, $xmlrpcString));
$_xmlrpcs_methodHelp_doc='Returns help text if defined for the method passed, otherwise returns an empty string';
function _xmlrpcs_methodHelp($server, $m) {
global $xmlrpcerr, $xmlrpcstr, $_xmlrpcs_dmap;
$methName=$m->getParam(0);
$methName=$methName->scalarval();
if (ereg("^system\.", $methName)) {
$dmap=$_xmlrpcs_dmap; $sysCall=1;
} else {
$dmap=$server->dmap; $sysCall=0;
}
// print "<!-- ${methName} -->\n";
if (isset($dmap[$methName])) {
if ($dmap[$methName]["docstring"]) {
$r=new xmlrpcresp(new xmlrpcval($dmap[$methName]["docstring"]),
"string");
} else {
$r=new xmlrpcresp(new xmlrpcval("", "string"));
}
} else {
$r=new xmlrpcresp(0,
$xmlrpcerr["introspect_unknown"],
$xmlrpcstr["introspect_unknown"]);
}
return $r;
}
$_xmlrpcs_dmap=array(
"system.listMethods" =>
array("function" => "_xmlrpcs_listMethods",
"signature" => $_xmlrpcs_listMethods_sig,
"docstring" => $_xmlrpcs_listMethods_doc),
"system.methodHelp" =>
array("function" => "_xmlrpcs_methodHelp",
"signature" => $_xmlrpcs_methodHelp_sig,
"docstring" => $_xmlrpcs_methodHelp_doc),
"system.methodSignature" =>
array("function" => "_xmlrpcs_methodSignature",
"signature" => $_xmlrpcs_methodSignature_sig,
"docstring" => $_xmlrpcs_methodSignature_doc)
);
$_xmlrpc_debuginfo="";
function xmlrpc_debugmsg($m) {
global $_xmlrpc_debuginfo;
$_xmlrpc_debuginfo=$_xmlrpc_debuginfo . $m . "\n";
}
class xmlrpc_server {
var $dmap=array();
function xmlrpc_server($dispMap, $serviceNow=1) {
global $HTTP_RAW_POST_DATA;
// dispMap is a despatch array of methods
// mapped to function names and signatures
// if a method
// doesn't appear in the map then an unknown
// method error is generated
$this->dmap=$dispMap;
if ($serviceNow) {
$this->service();
}
}
function serializeDebug() {
global $_xmlrpc_debuginfo;
if ($_xmlrpc_debuginfo!="")
return "<!-- DEBUG INFO:\n\n" .
$_xmlrpc_debuginfo . "\n-->\n";
else
return "";
}
function service() {
$r=$this->parseRequest();
$payload="<?xml version=\"1.0\"?>\n" .
$this->serializeDebug() .
$r->serialize();
Header("Content-type: text/xml\r\nContent-length: " .
strlen($payload));
print $payload;
}
function verifySignature($in, $sig) {
for($i=0; $i<sizeof($sig); $i++) {
// check each possible signature in turn
$cursig=$sig[$i];
if (sizeof($cursig)==$in->getNumParams()+1) {
$itsOK=1;
for($n=0; $n<$in->getNumParams(); $n++) {
$p=$in->getParam($n);
// print "<!-- $p -->\n";
if ($p->kindOf() == "scalar") {
$pt=$p->scalartyp();
} else {
$pt=$p->kindOf();
}
// $n+1 as first type of sig is return type
if ($pt != $cursig[$n+1]) {
$itsOK=0;
$pno=$n+1; $wanted=$cursig[$n+1]; $got=$pt;
break;
}
}
if ($itsOK)
return array(1);
}
}
return array(0, "Wanted ${wanted}, got ${got} at param ${pno})");
}
function parseRequest($data="") {
global $_xh,$HTTP_RAW_POST_DATA;
global $xmlrpcerr, $xmlrpcstr, $xmlrpcerrxml, $xmlrpc_defencoding,
$_xmlrpcs_dmap;
if ($data=="") {
$data=$HTTP_RAW_POST_DATA;
}
$parser = xml_parser_create($xmlrpc_defencoding);
$_xh[$parser]=array();
$_xh[$parser]['st']="";
$_xh[$parser]['cm']=0;
$_xh[$parser]['isf']=0;
$_xh[$parser]['params']=array();
$_xh[$parser]['method']="";
// decompose incoming XML into request structure
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, true);
xml_set_element_handler($parser, "xmlrpc_se", "xmlrpc_ee");
xml_set_character_data_handler($parser, "xmlrpc_cd");
xml_set_default_handler($parser, "xmlrpc_dh");
if (!xml_parse($parser, $data, 1)) {
// return XML error as a faultCode
$r=new xmlrpcresp(0,
$xmlrpcerrxml+xml_get_error_code($parser),
sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($parser)),
xml_get_current_line_number($parser)));
xml_parser_free($parser);
} else {
xml_parser_free($parser);
$m=new xmlrpcmsg($_xh[$parser]['method']);
// now add parameters in
$plist="";
for($i=0; $i<sizeof($_xh[$parser]['params']); $i++) {
//print "<!-- " . $_xh[$parser]['params'][$i]. "-->\n";
$plist.="$i - " . $_xh[$parser]['params'][$i]. " \n";
eval('$m->addParam(' . $_xh[$parser]['params'][$i]. ");");
}
// uncomment this to really see what the server's getting!
// xmlrpc_debugmsg($plist);
// now to deal with the method
$methName=$_xh[$parser]['method'];
if (ereg("^system\.", $methName)) {
$dmap=$_xmlrpcs_dmap; $sysCall=1;
} else {
$dmap=$this->dmap; $sysCall=0;
}
if (isset($dmap[$methName]['function'])) {
// dispatch if exists
if (isset($dmap[$methName]['signature'])) {
$sr=$this->verifySignature($m,
$dmap[$methName]['signature'] );
}
if ( (!isset($dmap[$methName]['signature']))
|| $sr[0]) {
// if no signature or correct signature
if ($sysCall) {
eval('$r=' . $dmap[$methName]['function'] .
'($this, $m);');
} else {
eval('$r=' . $dmap[$methName]['function'] .
'($m);');
}
} else {
$r=new xmlrpcresp(0,
$xmlrpcerr["incorrect_params"],
$xmlrpcstr["incorrect_params"].": ". $sr[1]);
}
} else {
// else prepare error response
$r=new xmlrpcresp(0,
$xmlrpcerr["unknown_method"],
$xmlrpcstr["unknown_method"]);
}
}
return $r;
}
function echoInput() {
global $HTTP_RAW_POST_DATA;
// a debugging routine: just echos back the input
// packet as a string value
$r=new xmlrpcresp;
$r->xv=new xmlrpcval( "'Aha said I: '" . $HTTP_RAW_POST_DATA, "string");
print $r->serialize();
}
}
?>
Oki
\ No newline at end of file
......@@ -9,7 +9,9 @@ if(count($_FILES)==0) {
// Remove automatic quotes added to POST/COOKIE by PHP
if (get_magic_quotes_gpc ()) {
foreach($_REQUEST as $k=>$v) {
$_REQUEST[$k]=stripslashes($v);
if(!is_array($_REQUEST[$k])) {
$_REQUEST[$k]=stripslashes($v);
}
}
}
}
......
......@@ -16,11 +16,15 @@ BODY {
*/
/* MAIN AREA OF THE APPLICATION */
DIV#tiki-main {
background: white;
height: 100%;
width: 98%;
}
DIV#tiki-center {
margin-left: 5px;
}
/* The TOP bar of the tiki application */
DIV#tiki-top {
......@@ -31,39 +35,33 @@ DIV#tiki-top {
width: 100%;
}
/* MAIN AREA OF THE APPLICATION */
DIV#tiki-mid {
background: white;
height: auto;
padding-bottom: 0px;
TD#leftcolumn {
vertical-align: top;
background: #DED6C6;
width: 150px;
}
DIV#left {
width: 100%;
TD#rightcolumn {
vertical-align: top;
background: #DED6C6;
height: 100%;
padding-top: 5px;
padding-bottom: 15px;
margin-bottom: 0px;
width: 150px;