Thread: [Rcts-checkins] SF.net SVN: rcts: [1709] trunk
Brought to you by:
bastimmer,
paulsohier
From: <pau...@us...> - 2006-04-12 09:30:15
|
Revision: 1709 Author: paulsohier Date: 2006-04-12 02:29:58 -0700 (Wed, 12 Apr 2006) ViewCVS: http://svn.sourceforge.net/rcts/?rev=1709&view=rev Log Message: ----------- New installer. Added Paths: ----------- trunk/install_version2.0/ trunk/install_version2.0/install.php Added: trunk/install_version2.0/install.php =================================================================== --- trunk/install_version2.0/install.php (rev 0) +++ trunk/install_version2.0/install.php 2006-04-12 09:29:58 UTC (rev 1709) @@ -0,0 +1,75 @@ +<?php +/****************************************************************** +* Really Coding Traffic Statistics 2 +* Begin: October, 3rd 2005 +* Copyright: Copyright 2005 by Really coding Group +****************************************************************** +* install.php +* **************** +* $Id$ +******************************************************************/ +/******************************************************************* +* +* This program 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. +* +*******************************************************************/ +define('IN_STATS', true); +define('IN_INSTALL',true); +define('RCTS_ROOT_PATH', dirname(dirname(__FILE__))); +define('STRIP', ((get_magic_quotes_gpc()) ? true : false)); +if(!file_exists(RCTS_ROOT_PATH . '/includes/config.php') && is_writeable(RCTS_ROOT_PATH . '/includes/')){ + @fclose(@fopen(RCTS_ROOT_PATH . '/includes/config.php','w')); +} +include(RCTS_ROOT_PATH."/includes/db/db.php"); +include(RCTS_ROOT_PATH."/includes/classes/class.template.php"); +include(RCTS_ROOT_PATH."/includes/functions.php"); +include(RCTS_ROOT_PATH."/includes/functions_sql.php"); +include(RCTS_ROOT_PATH."/includes/functions_vars.php"); +include(RCTS_ROOT_PATH."/includes/functions_color.php"); +include(RCTS_ROOT_PATH."/includes/classes/class.lang.php"); +include(RCTS_ROOT_PATH."/includes/classes/class.error.php"); +$stap = intval(get_var('stap')); +if ($stap === false || $stap < 1 || $stap > 5 || !is_numeric($stap)) {//5 biggest step? :) + $stap = 1; +} +error_reporting(E_ALL ^ E_NOTICE);//Don't show errors. +$error = new error(); +$old = set_error_handler(array($error, 'trigger')); +//First, we do a array check. +if(isset($_POST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_GET['GLOBALS']) || isset($_COOKIE['GLOBALS']) || isset($_SESSION['GLOBALS']) || (isset($_SESSION) && !is_array($_SESSION))){ + die("We don't like hackers ;)"); +} +if(!isset($_SESSION)){ + $_SESSION = array(); +} +check_for_exploits(); + +unset_global($_COOKIE); +unset_global($_POST); +unset_global($_GET); +unset_global($_SESSION); +unset_global($_ENV); +unset_global($_SERVER); +unset_global($_REQUEST); +$lang = new RCTSLang(); +$lang->loadLang(); + +$template = new tpl('install/templates_new/'); +include(RCTS_ROOT_PATH."/includes/config.php"); +if(defined('STATS_INSTALLED')){ +// loc("stats.php"); +} +$steps = array( + 1 => $lang->lang['Install_Page_Welkom'], + 2 => $lang->lang['Install_Page_DB_Info'], + 3 => $lang->lang['Install_Page_Install_com'] +); + +$template->add_file(array("body"=>"install.html")); + + +$template->parse("body"); +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-04-26 15:53:51
|
Revision: 1822 Author: paulsohier Date: 2006-04-26 08:53:35 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/rcts/?rev=1822&view=rev Log Message: ----------- SQL schemas for install and update Added Paths: ----------- trunk/schemas/ trunk/schemas/index.htm Added: trunk/schemas/index.htm =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bas...@us...> - 2006-06-07 22:27:42
|
Revision: 1888 Author: bastimmer Date: 2006-06-07 03:46:45 -0700 (Wed, 07 Jun 2006) ViewCVS: http://svn.sourceforge.net/rcts/?rev=1888&view=rev Log Message: ----------- First import, only chapters: Installation, upgrade. Added Paths: ----------- trunk/manual/ trunk/manual/nl/ trunk/manual/nl/Makefile trunk/manual/nl/manual_nl.xml trunk/manual/nl/manual_nl_htmlhelp.xsl trunk/manual/nl/version.txt Added: trunk/manual/nl/Makefile =================================================================== --- trunk/manual/nl/Makefile (rev 0) +++ trunk/manual/nl/Makefile 2006-06-07 10:46:45 UTC (rev 1888) @@ -0,0 +1,30 @@ +#Here's our RCTS makefile +#for the RCTS documentation + +book_ver = `cat version.txt` + +docs_files = manual_nl.xml \ + manual_nl_htmlhelp.xsl \ +# manual_nl.css \ +# chap1.xml \ +# chap2.xml \ +# faqs.xml \ + Makefile \ +# gfx/note.png \ +# smiley.bmp \ + version.txt + +docs: + sed "s?BOOK_VERSION?$(book_ver)?g" manual_nl.xml > manual_nl.xml.tmp + cp manual_nl.xml manual_nl.xml.orig + mv manual_nl.xml.tmp manual_nl.xml + xsltproc --nonet manual_nl_htmlhelp.xsl manual_nl.xml + -hhc htmlhelp.hhp + mv manual_nl.xml.orig manual_nl.xml + +dist: + mkdir manual_nl-$(book_ver) + cp --parents $(docs_files) manual_nl-$(book_ver)/ + tar -cf manual_nl-$(book_ver).tar manual_nl-$(book_ver)/ + gzip manual_nl-$(book_ver).tar + rm -rf manual_nl-$(book_ver)/ \ No newline at end of file Added: trunk/manual/nl/manual_nl.xml =================================================================== --- trunk/manual/nl/manual_nl.xml (rev 0) +++ trunk/manual/nl/manual_nl.xml 2006-06-07 10:46:45 UTC (rev 1888) @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" +"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> +<book> + <title>Really Coding Traffic Statistics Handleiding, versie + BOOK_VERSION</title> + + <chapter> + <title>Installatie</title> + + <section> + <title>Downloaden en uploaden</title> + + <para>Eerst download je de nieuwste versie van RCTS van <ulink + url="http://sourceforge.net/project/showfiles.php?group_id=155144">SourceForge.net</ulink>. + Nu moet je deze uitpakken in een (tijdelijke) map op je harde schijf, + met een unzip-programma als WinRAR of Windows XP.</para> + + <para>Nu open je je FTP-programma, en verbind je met je website. Daarna + upload je de inhoud van de RCTS-map, dus waar includes, conf.php en + stats.php staan, naar een nieuwe map op je FTP, zoals stats of rcts. + CHMOD nu de volgende bestanden naar 777, of maak ze op een of andere + manier schrijfbaar:<itemizedlist> + <listitem> + <para>includes/config.php</para> + </listitem> + + <listitem> + <para>de map cache/</para> + </listitem> + + <listitem> + <para>.htaccess</para> + </listitem> + </itemizedlist></para> + </section> + + <section> + <title>Installeren</title> + + <para>Nu je RCTS geupload hebt, kun je de installatiewizard starten! Ga + met je browser naar de URL waar je de bestanden heen geupload hebt. Vul + in stap 2 de database-gegevens in, die je van je host gekregen hebt, of + in je controlepaneel vindt. Ook vul je hier je + configuratie-gebruikersnaam/wachtwoord in. Dan is RCTS geinstalleerd. Je + hoeft alleen nog naar http://example.com/je-stats-url/wizz.php te gaan, + in te loggen, en daar code te maken om op je website te zetten!</para> + </section> + </chapter> + + <chapter> + <title>Upgraden</title> + + <section> + <title>Voorbereiding</title> + + <para>Open, in je oude statistieken-versie, als hij offline is, het + bestand cache/version.txt, en zoek <code>$offline = '1';</code>, en + vervang de 1 door een 0. Nu horen de statistieken weer te werken. Maak + een backup van je RCTS-bestanden en -database, en zorg er ook voor dat + je echt een backup hebt. Download nu de nieuwste versie van RCTS van + <ulink + url="http://sourceforge.net/project/showfiles.php?group_id=155144">SourceForge.net</ulink>, + en pak deze uit.</para> + </section> + + <section> + <title>Updaten</title> + + <para>Download eerst config.php uit de includes-map met je + FTP-programma, en bewaar hem op een velige plek. Wis nu alle bestanden + van RCTS, die op je site staan. Wis niet de database! Wees zeker dat je + een backup hebt voordat je dit doet, en config.php hebt! Upload nu de + nieuwe versie naar dezelfde map waar vroeger de oude versie stond. Ga + nog niet naar de statistieken!</para> + + <section> + <title>De database updaten.</title> + + <para>Upload nu config.php, uit de plek waar je hem net bewaarde, naar + de map install. Ga dan nu naar + http://example.com/stats/install/update.php, waar + http://example.com/stats/ de URL is naar je statistieken. Klik op + Volgende. Dit kan even een tijdje duren, klik maar 1 keer! Na een + tijdje hoor je een melding te zien dat de update geslaagd is. Klik op + Voltooi. Nu draaien je statistieken op de nieuwe versie!</para> + + <note> + <para>Alle grafieken zullen opnieuw gemaakt worden hierna. Je kunt + zelfs upgraden van 1.1.0 naar 1.2.3!</para> + </note> + </section> + </section> + </chapter> +</book> \ No newline at end of file Added: trunk/manual/nl/manual_nl_htmlhelp.xsl =================================================================== --- trunk/manual/nl/manual_nl_htmlhelp.xsl (rev 0) +++ trunk/manual/nl/manual_nl_htmlhelp.xsl 2006-06-07 10:46:45 UTC (rev 1888) @@ -0,0 +1,17 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + <xsl:import href="D:/bas/docbook/docbook-xsl-1.70.1/htmlhelp/htmlhelp.xsl"/> + <xsl:param name="generate.legalnotice.link" select="1"/> + <xsl:param name="suppress.navigation" select="0"/> + <xsl:param name="admon.graphics" select="1"/> + <xsl:param name="admon.graphics.path">gfx/</xsl:param> + <xsl:param name="htmlhelp.chm" select="'rcts-manual-nl.chm'"/> + <xsl:param name="htmlhelp.hhc.binary" select="0"/> + <xsl:param name="htmlhelp.hhc.folders.instead.books" select="0"/> + <xsl:param name="toc.section.depth" select="4"/> + <xsl:template name="user.header.navigation"> + <hr></hr> + <p>RCTS HTML Help Documentation</p> + <hr></hr> + </xsl:template> +</xsl:stylesheet> \ No newline at end of file Added: trunk/manual/nl/version.txt =================================================================== --- trunk/manual/nl/version.txt (rev 0) +++ trunk/manual/nl/version.txt 2006-06-07 10:46:45 UTC (rev 1888) @@ -0,0 +1 @@ +0.0.2 \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-08 15:25:18
|
Revision: 1942 http://svn.sourceforge.net/rcts/?rev=1942&view=rev Author: paulsohier Date: 2006-09-08 08:25:05 -0700 (Fri, 08 Sep 2006) Log Message: ----------- fixes. Modified Paths: -------------- trunk/install_version2.0/install.php trunk/install_version2.0/tmp/en.php Removed Paths: ------------- trunk/version1.0/.project trunk/version1.0/error.txt trunk/version1.0/install/ trunk/version1.0/installation.txt Modified: trunk/install_version2.0/install.php =================================================================== --- trunk/install_version2.0/install.php 2006-09-08 15:00:19 UTC (rev 1941) +++ trunk/install_version2.0/install.php 2006-09-08 15:25:05 UTC (rev 1942) @@ -1,46 +1,42 @@ <?php -/****************************************************************** -* Really Coding Traffic Statistics 2 -* Begin: October, 3rd 2005 -* Copyright: Copyright 2005 by Really coding Group -****************************************************************** -* install.php -* **************** -* $Id$ -******************************************************************/ -/******************************************************************* -* -* This program 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. -* -*******************************************************************/ -define('IN_STATS', true); +/** + * install + * @package RCTS2 + * @version $Id$ + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Really Coding Group, 2005-2006 + * @author Really Coding Group + */ +/** + * @ignore + */ define('IN_INSTALL',true); define('RCTS_ROOT_PATH', dirname(__FILE__)); -if(version_compare(phpversion(),'6.0.0-dev','>=')){ +if(version_compare(phpversion(),'6.0.0-dev','>=')) +{ + /** + * @ignore + * + */ define('STRIP',false); -}else{ +} +else +{ + /** + * @ignore + * + */ define('STRIP', ((get_magic_quotes_gpc()) ? true : false)); } ob_start() ; ob_flush(); $stap = intval(get_var('stap')); -if ($stap === false || $stap < 1 || $stap > 5 || !is_numeric($stap)) {//5 biggest step? :) +if ($stap === false || $stap < 1 || $stap > 5 || !is_numeric($stap)) +{//5 biggest step? :) $stap = 1; } pageheader(); -/** - * Remove the next two lines to install RCTS 2.0.x DEV. - * Please notice there will be no support for using this version - * If you have found a bug, please add it to our bugtracker. - * Don't use this at a live envriment! - * Really Coding Group, 2006 - **/ -//print "Comment the line ".__line__.", and the line after it, to install RCTS2. Don't forget to read the text that comes before it ;)"; -//pagefooter(); -error_reporting(E_ALL );//Don't show errors. +error_reporting(E_ALL ^ E_NOTICE );//Don't show errors. /*$error = new error(); $old = set_error_handler(array($error, 'trigger'));*/ //First, we do a array check. @@ -59,11 +55,15 @@ unset_global($_SERVER); unset_global($_REQUEST); } -if($stap == 1){ +if($stap == 1) +{ $language = false; -}else{ +} +else +{ $language = get_var('lang'); - if(!$language){ + if($language === false) + { trigger_error("Some post vars are missing!",E_USER_ERROR); } } @@ -74,9 +74,13 @@ $tmp = $browser->showContents (false); $browser->reset(); md($tmp,$MD); +if(!count($MD)) +{ + trigger_error("Error retreving md5 string check",E_USER_ERROR) +} -if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) +/*if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) { //Lets make a lang request :D $browser->postPage('http://2.reallycoding.nl/lang.txt','GET'); @@ -108,15 +112,15 @@ } } } -} +}*/ -if (!$language) +//if ($language === false) { $language = 'en'; } //Got other languages other then english :) -if($language != 'en' && !file_exists("tmp/$language.php")){ +/*if($language != 'en' && !file_exists("tmp/$language.php")){ $browser->postPage('http://2.reallycoding.nl/lang_install/'.htmlspecialchars($language).'.txt','GET'); $return = $browser->showContents (); $browser->reset(); @@ -127,7 +131,7 @@ fwrite($o,$return); fclose($o); -} +}*/ $lang = array(); //include('tmp/'.$language.'.php'); include('tmp/en.php'); @@ -315,9 +319,6 @@ $sql_query = remove_remarks($sql_query); $sql = split_sql_file($sql_query,';'); unset($sql_query); -// PAUL? Could you fix this? Now we all have your config username. ;) -// $sql[] = "UPDATE ".$prefix."config SET waarde = '$user2' WHERE naam = 'username'"; -// $sql[] = "UPDATE ".$prefix."config SET waarde = '$pass2' WHERE naam = 'password'"; $sql[] = "INSERT INTO `rcts_users` ( `id` , `uname` , `pass` , `name` , `email` , `is_admin` , `lastlogin` ) VALUES ('', '$user2', '$pass2' , '', '', '1','')"; $err = false; @@ -348,10 +349,9 @@ print "</td><td><select name='server'>"; for($i = 0; $i < count($return);$i++){ $tmp = explode("||",$return[$i]); - //Uncomment next by release!: - /*if($tmp[0] == 0){ + if($tmp[0] == 0){ continue; - } */ + } $info = parse_url($tmp[1]); print "<option value='".$i."'>".$info['host']."</option>"; @@ -435,11 +435,11 @@ print $lang['removing']; unlink("includes/config.php"); copy("tmp/config.php","includes/config.php"); - // unlink('tmp.zip'); - // unlink('lang_tmp.zip'); - // rmdirr('tmp'); + unlink('tmp.zip'); + unlink('lang_tmp.zip'); + rmdirr('tmp'); //Remove this file ;) - // unlink('install.php'); + unlink('install.php'); print $lang['done']; $disabled = 'style="display:none;"'; @@ -468,6 +468,10 @@ function browser(){ $this->cookies = ''; } + /** + * Reset all vars. + * + */ function reset(){ $this->cookies = ''; $this->data = ''; @@ -487,6 +491,7 @@ * showContents() * * Return the source. + * @param bool $md5 check md5? * @return string source of the posting page */ function showContents($md5 = true) { @@ -611,6 +616,12 @@ fclose($connection); return $contents; } + /** + * Encode html + * + * @param string $str string to encode + * @return string encoded string + */ function htmlEncode($str) { $str = urlencode($str); return $str; @@ -638,8 +649,11 @@ } } /** - * Zip class, from phpbb3 www.phpbb.com - **/ + * Zip class, from phpbb.com + * @package zip + * @author phpbb group + * + */ class zip { var $datasec = array(); @@ -784,12 +798,12 @@ /** * Functions needed for install: **/ -/* -This functions gets a var form POST GET COOKIE -@param Name of the var -@param Look in session of not -@param Look in cookie or not -@return value +/** + * This functions gets a var form POST GET COOKIE + * @param Name of the var + * @param Look in session of not + * @param Look in cookie or not + * @return value */ function get_var($name,$session = false,$cookie = false){ if(isset($_COOKIE[$name]) && $cookie){ @@ -804,10 +818,10 @@ return false; } } -/* -This functions prepears var for store -@param value -@return value +/** + * This functions prepears var for store + * @param value + * @return value */ function set_var($result){ //met arrays gaat het ophalen helemaal fout @@ -823,9 +837,9 @@ return $result; } /* -This function adds slashes to EVERY value in the array -@param the array -@return the new array + * This function adds slashes to EVERY value in the array + * @param the array + * @return the new array */ function array_add_slashes($array) { @@ -849,10 +863,10 @@ } } -/* -Simple function to add slashes if m_q_gpc is off -@param Text -@return addslashed text +/** + * Simple function to add slashes if m_q_gpc is off + * @param Text + * @return addslashed text */ function add_slashes($text) { @@ -862,10 +876,10 @@ } return $text; } -/* -This function unsets an array of globals -@param the array -@return nothing +/** + * This function unsets an array of globals + * @param the array + * @return nothing */ function unset_global($array){ if(is_array($array)){ @@ -875,6 +889,12 @@ } } } +/** + * Return a country name for country code + * + * @param string $lang country code + * @return string country name + */ function lang_to_string($lang){ $match_lang = array( 'arabic' => 'ar([_-][a-z]+)?', @@ -931,17 +951,17 @@ return $el; } } -// trigger_error("Lang unkown,",E_USER_ERROR); + trigger_error("Lang unkown,",E_USER_ERROR); return 'STOP 0xDEADDEAD (0x00000000) ;)'; } -/* -This function will make the config file. -@param hostnuname of mysql db -@param username of mysql db -@param password of mysql db -@param name of mysql db -@param prefix of tabels -@return nothing +/** + * This function will make the config file. + * @param hostnuname of mysql db + * @param username of mysql db + * @param password of mysql db + * @param name of mysql db + * @param prefix of tabels + * @return nothing */ function install_write($host,$name,$ww,$db,$prefix,$db_type){ @@ -965,11 +985,11 @@ fwrite($o,$file); fclose($o); } -/* -This function will strip the sql comment lines out of an uploaded sql file -specifically for mssql and postgres type files in the install.... -@param sql lines -@return sql lines +/** + * This function will strip the sql comment lines out of an uploaded sql file + * specifically for mssql and postgres type files in the install.... + * @param sql lines + * @return sql lines */ function remove_comments(&$output) { @@ -1002,10 +1022,10 @@ return $output; } -/* -This function will strip the sql comment lines out of an uploaded sql file -@param sql lines -@return sql lines +/** + * This function will strip the sql comment lines out of an uploaded sql file + * @param sql lines + * @return sql lines */ function remove_remarks($sql) { @@ -1039,12 +1059,12 @@ } -/* -This function will split an uploaded sql file into single sql statements. -Note: expects trim() to have already been run on $sql. -@param sql lines -@param ware to split sign -@return array of sql lines +/** + * This function will split an uploaded sql file into single sql statements. + * Note: expects trim() to have already been run on $sql. + * @param sql lines + * @param ware to split sign + * @return array of sql lines */ function split_sql_file($sql, $delimiter) { @@ -1133,15 +1153,15 @@ return $output; } -/* -25.07.2005 -Author: Anton Makarenko - makarenkoa at ukrpost dot net - webmaster at eufimb dot edu dot ua -Original idea: - http://ua2.php.net/manual/en/function.rmdir.php - 28-Apr-2005 07:35 - development at lab-9 dot com +/** + * 25.07.2005 + * Original idea: + * http://ua2.php.net/manual/en/function.rmdir.php + * 28-Apr-2005 07:35 + * development at lab-9 dot com + * @Author Anton Makarenko makarenkoa at ukrpost dot net webmaster at eufimb dot edu dot ua + * @param string $target dir to remove + * @return bool result */ function rmdirr($target) // removes a directory and everything within it @@ -1173,6 +1193,12 @@ return false; } +/** + * Parse md5 code block. + * + * @param string $tmp string with data from server + * @param array $MD array with known md5 string + */ function md(&$tmp,&$MD){ $tmp = preg_replace("#(.*?)".preg_quote('<!--BEGIN-->') . "(.*?)" . preg_quote('<!--END-->') . "(.*?)#si","\\2",$tmp); $row = explode("<!-- FILE -->",$tmp); @@ -1188,11 +1214,18 @@ $MD[$naam] = $md5; } } +/** + * Page header function + * + */ function pageheader(){ global $stap,$lang; if(defined('head')){ return; } + /** + * @ignore + */ define('head',true); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> @@ -1212,11 +1245,18 @@ <table width="100%"> <?php } +/** + * Page footer function + * + */ function pagefooter(){ global $stap,$lang,$disabled; if(defined('foot')){ return; } + /** + * @ignore + */ define('foot',true); ?> </table> @@ -1231,4 +1271,4 @@ <?php die; } -?> +?> \ No newline at end of file Modified: trunk/install_version2.0/tmp/en.php =================================================================== --- trunk/install_version2.0/tmp/en.php 2006-09-08 15:00:19 UTC (rev 1941) +++ trunk/install_version2.0/tmp/en.php 2006-09-08 15:25:05 UTC (rev 1942) @@ -1,21 +1,12 @@ <?php -/****************************************************************** -* Really Coding Traffic Statistics 2 -* Begin: October, 3rd 2005 -* Copyright: Copyright 2005 by Really coding Group -****************************************************************** -* install.php -* **************** -* $Id$ -******************************************************************/ -/******************************************************************* -* -* This program 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. -* -*******************************************************************/ +/** + * install language + * @package RCTS2 + * @version $Id$ + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Really Coding Group, 2005-2006 + * @author Really Coding Group + */ $lang['title'] = 'RCTS Installation'; $lang['choose_lang'] = 'Choose here your language you want to set as default'; $lang['stap'] = 'Step %s: %s'; Deleted: trunk/version1.0/.project =================================================================== --- trunk/version1.0/.project 2006-09-08 15:00:19 UTC (rev 1941) +++ trunk/version1.0/.project 2006-09-08 15:25:05 UTC (rev 1942) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>RCTS2</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>net.sourceforge.phpeclipse.parserbuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>net.sourceforge.phpeclipse.phpnature</nature> - </natures> -</projectDescription> Deleted: trunk/version1.0/error.txt =================================================================== --- trunk/version1.0/error.txt 2006-09-08 15:00:19 UTC (rev 1941) +++ trunk/version1.0/error.txt 2006-09-08 15:25:05 UTC (rev 1942) @@ -1,29 +0,0 @@ -[19-Jun-2006 12:57:34] PHP Fatal error: Call to undefined function page_header() in E:\version1.0\includes\classes\class.core.php on line 665 -[19-Jun-2006 12:58:38] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 1096 -[19-Jun-2006 12:59:34] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 1096 -[19-Jun-2006 12:59:35] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 1096 -[19-Jun-2006 13:01:26] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 933 -[19-Jun-2006 13:01:26] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 933 -[19-Jun-2006 13:03:35] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 930 -[19-Jun-2006 13:03:36] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 930 -[19-Jun-2006 13:03:59] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 904 -[19-Jun-2006 13:04:00] PHP Parse error: parse error, unexpected $end in E:\version1.0\includes\classes\class.wizard.php on line 904 -[19-Jun-2006 13:04:59] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:04:59] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:09] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:09] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:16] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:16] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:25] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:25] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:28] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:28] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:30] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:30] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[19-Jun-2006 13:06:32] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 165 -[19-Jun-2006 13:06:32] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in E:\version1.0\includes\classes\class.wizard.php on line 518 -[06-Jul-2006 13:36:20] PHP Fatal error: Class 'smtp' not found in E:\version1.0\includes\classes\class.core.php on line 153 -[06-Jul-2006 13:36:29] PHP Fatal error: Maximum execution time of 60 seconds exceeded in E:\version1.0\includes\start.php on line 14 -[06-Jul-2006 13:36:29] PHP Fatal error: Maximum execution time of 60 seconds exceeded in E:\version1.0\includes\start.php on line 14 -[06-Jul-2006 13:36:29] PHP Fatal error: Class 'smtp' not found in E:\version1.0\includes\classes\class.core.php on line 153 -[06-Jul-2006 13:36:29] PHP Fatal error: Class 'smtp' not found in E:\version1.0\includes\classes\class.core.php on line 153 Deleted: trunk/version1.0/installation.txt =================================================================== --- trunk/version1.0/installation.txt 2006-09-08 15:00:19 UTC (rev 1941) +++ trunk/version1.0/installation.txt 2006-09-08 15:25:05 UTC (rev 1942) @@ -1,7 +0,0 @@ -nederlands : - -U vindt het installatie hulp bestand terug in de map /docs/ - -english : - -You will find the instal guide in the folder /docs/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-08 15:26:40
|
Revision: 1943 http://svn.sourceforge.net/rcts/?rev=1943&view=rev Author: paulsohier Date: 2006-09-08 08:26:17 -0700 (Fri, 08 Sep 2006) Log Message: ----------- Forgot to add phpdoc for install :D Added Paths: ----------- trunk/install_version2.0/docs/ trunk/install_version2.0/docs/RCTS2/ trunk/install_version2.0/docs/RCTS2/_version2.0_install_php.html trunk/install_version2.0/docs/RCTS2/browser.html trunk/install_version2.0/docs/classtrees_RCTS2.html trunk/install_version2.0/docs/classtrees_install.html trunk/install_version2.0/docs/classtrees_zip.html trunk/install_version2.0/docs/elementindex.html trunk/install_version2.0/docs/elementindex_RCTS2.html trunk/install_version2.0/docs/elementindex_install.html trunk/install_version2.0/docs/elementindex_zip.html trunk/install_version2.0/docs/errors.html trunk/install_version2.0/docs/index.html trunk/install_version2.0/docs/install/ trunk/install_version2.0/docs/install/_version2.0_tmp_en_php.html trunk/install_version2.0/docs/li_RCTS2.html trunk/install_version2.0/docs/li_install.html trunk/install_version2.0/docs/li_zip.html trunk/install_version2.0/docs/media/ trunk/install_version2.0/docs/media/background.png trunk/install_version2.0/docs/media/empty.png trunk/install_version2.0/docs/media/style.css trunk/install_version2.0/docs/zip/ trunk/install_version2.0/docs/zip/zip.html trunk/phpdoc conf/ trunk/phpdoc conf/install Added: trunk/install_version2.0/docs/RCTS2/_version2.0_install_php.html =================================================================== --- trunk/install_version2.0/docs/RCTS2/_version2.0_install_php.html (rev 0) +++ trunk/install_version2.0/docs/RCTS2/_version2.0_install_php.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,503 @@ +<html> +<head> +<title>Docs for page install.php</title> +<link rel="stylesheet" type="text/css" href="../media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="../classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="../elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="../elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="../li_install.html">install</a><br /> + <a href="../li_RCTS2.html">RCTS2</a><br /> + <a href="../li_zip.html">zip</a><br /> + <br /><br /> + <b>Files:</b><br /> + <div class="package"> + <a href="../RCTS2/_version2.0_install_php.html"> install.php + </a><br> + </div><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="../RCTS2/browser.html">browser</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Procedural File: install.php</h1> +Source Location: /install.php<br /><br /> + +<br> +<br> + +<div class="contents"> +<h2>Classes:</h2> +<dt><a href="../RCTS2/browser.html">browser</a></dt> + <dd>PHPBrowser class</dd> +<dt><a href="../zip/zip.html">zip</a></dt> + <dd>Zip class, from phpbb.com</dd> +</div><br /><br /> + +<h2>Page Details:</h2> +install<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>author:</b> </td><td>Really Coding Group</td> + </tr> + <tr> + <td><b>copyright:</b> </td><td>Really Coding Group, 2005-2006</td> + </tr> + <tr> + <td><b>license:</b> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td> + </tr> + <tr> + <td><b>version:</b> </td><td>$Id$</td> + </tr> +</table> +</div> +<br /><br /> +<h4>Includes:</h4> +<div class="tags"> +include(<a href="../install/_version2.0_tmp_en_php.html">'tmp/en.php'</a>) [line 137]<br /> +include("tmp/$db_type"."class.php") [line 291]<br /> +</div> +<br /><br /> +<br /><br /> + <hr /> + <a name="defineRCTS_ROOT_PATH"></a> + <h3>RCTS_ROOT_PATH <span class="smalllinenumber">[line 14]</span></h3> + <div class="tags"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>RCTS_ROOT_PATH = dirname(__FILE__)</code> + </td></tr></table> + </td></tr></table> + + <br /> + </div> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> +<br /> + <hr /> + <a name="functionadd_slashes"></a> + <h3>add_slashes <span class="smalllinenumber">[line 871]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>addslashed add_slashes( +Text $text)</code> + </td></tr></table> + </td></tr></table><br /> + + Simple function to add slashes if m_q_gpc is off<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>text</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">Text </td> + <td><b>$text</b> </td> + <td></td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionarray_add_slashes"></a> + <h3>array_add_slashes <span class="smalllinenumber">[line 844]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void array_add_slashes( +mixed $array)</code> + </td></tr></table> + </td></tr></table><br /> + + <br /><br /> + + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionget_var"></a> + <h3>get_var <span class="smalllinenumber">[line 808]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>value get_var( +Name $name, [Look $session = false], [Look $cookie = false])</code> + </td></tr></table> + </td></tr></table><br /> + + This functions gets a var form POST GET COOKIE<br /><br /> <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">Name </td> + <td><b>$name</b> </td> + <td>of the var</td> + </tr> + <tr> + <td class="type">Look </td> + <td><b>$session</b> </td> + <td>in session of not</td> + </tr> + <tr> + <td class="type">Look </td> + <td><b>$cookie</b> </td> + <td>in cookie or not</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functioninstall_write"></a> + <h3>install_write <span class="smalllinenumber">[line 966]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>nothing install_write( +hostnuname $host, username $name, password $ww, name $db, prefix $prefix, mixed $db_type)</code> + </td></tr></table> + </td></tr></table><br /> + + This function will make the config file.<br /><br /> <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">hostnuname </td> + <td><b>$host</b> </td> + <td>of mysql db</td> + </tr> + <tr> + <td class="type">username </td> + <td><b>$name</b> </td> + <td>of mysql db</td> + </tr> + <tr> + <td class="type">password </td> + <td><b>$ww</b> </td> + <td>of mysql db</td> + </tr> + <tr> + <td class="type">name </td> + <td><b>$db</b> </td> + <td>of mysql db</td> + </tr> + <tr> + <td class="type">prefix </td> + <td><b>$prefix</b> </td> + <td>of tabels</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionlang_to_string"></a> + <h3>lang_to_string <span class="smalllinenumber">[line 898]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>string lang_to_string( +string $lang)</code> + </td></tr></table> + </td></tr></table><br /> + + Return a country name for country code<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>country name</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$lang</b> </td> + <td>country code</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionmd"></a> + <h3>md <span class="smalllinenumber">[line 1202]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void md( +string &$tmp, array &$MD)</code> + </td></tr></table> + </td></tr></table><br /> + + Parse md5 code block.<br /><br /> <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$tmp</b> </td> + <td>string with data from server</td> + </tr> + <tr> + <td class="type">array </td> + <td><b>$MD</b> </td> + <td>array with known md5 string</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionpagefooter"></a> + <h3>pagefooter <span class="smalllinenumber">[line 1252]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void pagefooter( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Page footer function<br /><br /> <br /><br /> + + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionpageheader"></a> + <h3>pageheader <span class="smalllinenumber">[line 1221]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void pageheader( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Page header function<br /><br /> <br /><br /> + + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionremove_comments"></a> + <h3>remove_comments <span class="smalllinenumber">[line 994]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>sql remove_comments( +sql &$output)</code> + </td></tr></table> + </td></tr></table><br /> + + This function will strip the sql comment lines out of an uploaded sql file specifically for mssql and postgres type files in the install....<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>lines</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">sql </td> + <td><b>&$output</b> </td> + <td>lines</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionremove_remarks"></a> + <h3>remove_remarks <span class="smalllinenumber">[line 1030]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>sql remove_remarks( +sql $sql)</code> + </td></tr></table> + </td></tr></table><br /> + + This function will strip the sql comment lines out of an uploaded sql file<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>lines</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">sql </td> + <td><b>$sql</b> </td> + <td>lines</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionrmdirr"></a> + <h3>rmdirr <span class="smalllinenumber">[line 1166]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>bool rmdirr( +string $target)</code> + </td></tr></table> + </td></tr></table><br /> + + 25.07.2005<br /><br /><p>Original idea: http://ua2.php.net/manual/en/function.rmdir.php 28-Apr-2005 07:35 development at lab-9 dot com</p><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>result</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$target</b> </td> + <td>dir to remove</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionset_var"></a> + <h3>set_var <span class="smalllinenumber">[line 826]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>value set_var( +value $result)</code> + </td></tr></table> + </td></tr></table><br /> + + This functions prepears var for store<br /><br /> <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">value </td> + <td><b>$result</b> </td> + <td></td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionsplit_sql_file"></a> + <h3>split_sql_file <span class="smalllinenumber">[line 1069]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>array split_sql_file( +sql $sql, ware $delimiter)</code> + </td></tr></table> + </td></tr></table><br /> + + This function will split an uploaded sql file into single sql statements.<br /><br /><p>Note: expects trim() to have already been run on $sql.</p><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>of sql lines</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">sql </td> + <td><b>$sql</b> </td> + <td>lines</td> + </tr> + <tr> + <td class="type">ware </td> + <td><b>$delimiter</b> </td> + <td>to split sign</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + <hr /> + <a name="functionunset_global"></a> + <h3>unset_global <span class="smalllinenumber">[line 884]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>nothing unset_global( +the $array)</code> + </td></tr></table> + </td></tr></table><br /> + + This function unsets an array of globals<br /><br /> <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">the </td> + <td><b>$array</b> </td> + <td>array</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:19 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/RCTS2/browser.html =================================================================== --- trunk/install_version2.0/docs/RCTS2/browser.html (rev 0) +++ trunk/install_version2.0/docs/RCTS2/browser.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,529 @@ +<html> +<head> +<title>Docs For Class browser</title> +<link rel="stylesheet" type="text/css" href="../media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="../classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="../elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="../elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="../li_install.html">install</a><br /> + <a href="../li_RCTS2.html">RCTS2</a><br /> + <a href="../li_zip.html">zip</a><br /> + <br /><br /> + <b>Files:</b><br /> + <div class="package"> + <a href="../RCTS2/_version2.0_install_php.html"> install.php + </a><br> + </div><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="../RCTS2/browser.html">browser</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Class: browser</h1> +Source Location: /install.php<br /><br /> + + +<table width="100%" border="0"> +<tr><td valign="top"> + +<h3><a href="#class_details">Class Overview</a></h3> +<pre></pre><br /> +<div class="description">PHPBrowser class</div><br /><br /> +<h4>Author(s):</h4> +<ul> + <li>Really Coding Group</li> + </ul> + + + + + + + +</td> + +<td valign="top"> +<h3><a href="#class_vars">Variables</a></h3> +<ul> + <li><a href="../RCTS2/browser.html#var$cookies">$cookies</a></li> + <li><a href="../RCTS2/browser.html#var$cookie_array">$cookie_array</a></li> + <li><a href="../RCTS2/browser.html#var$data">$data</a></li> + <li><a href="../RCTS2/browser.html#var$fields">$fields</a></li> + <li><a href="../RCTS2/browser.html#var$http_headers">$http_headers</a></li> + <li><a href="../RCTS2/browser.html#var$path_info">$path_info</a></li> + <li><a href="../RCTS2/browser.html#var$size">$size</a></li> + </ul> +</td> + + +<td valign="top"> +<h3><a href="#class_methods">Methods</a></h3> +<ul> + <li><a href="../RCTS2/browser.html#methodbrowser">browser</a></li> + <li><a href="../RCTS2/browser.html#methodaddField">addField</a></li> + <li><a href="../RCTS2/browser.html#methodaddHeader">addHeader</a></li> + <li><a href="../RCTS2/browser.html#methoddownloadContents">downloadContents</a></li> + <li><a href="../RCTS2/browser.html#methodgetUrlInfo">getUrlInfo</a></li> + <li><a href="../RCTS2/browser.html#methodhtmlEncode">htmlEncode</a></li> + <li><a href="../RCTS2/browser.html#methodpostPage">postPage</a></li> + <li><a href="../RCTS2/browser.html#methodreset">reset</a></li> + <li><a href="../RCTS2/browser.html#methodshowContents">showContents</a></li> + </ul> +</td> + +</tr></table> +<hr /> + +<table width="100%" border="0"><tr> + + + + + + +</tr></table> +<hr /> + +<a name="class_details"></a> +<h3>Class Details</h3> +<div class="tags"> +[line 461]<br /> +PHPBrowser class<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>license:</b> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td> + </tr> + <tr> + <td><b>author:</b> </td><td>Really Coding Group</td> + </tr> +</table> +</div> +</div><br /><br /> +<div class="top">[ <a href="#top">Top</a> ]</div><br /> + +<hr /> +<a name="class_vars"></a> +<h3>Class Variables</h3> +<div class="tags"> + <a name="var$cookies"></a> + <p></p> + <h4>$cookies = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$cookie_array"></a> + <p></p> + <h4>$cookie_array = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$data"></a> + <p></p> + <h4>$data = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$fields"></a> + <p></p> + <h4>$fields = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$http_headers"></a> + <p></p> + <h4>$http_headers = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$path_info"></a> + <p></p> + <h4>$path_info = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> + <a name="var$size"></a> + <p></p> + <h4>$size = <span class="value"></span></h4> + <p>[line 462]</p> + + <br /> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>Type:</b> </td> + <td>mixed</td> + </tr> + </table> + </div><br /><br /> + <div class="top">[ <a href="#top">Top</a> ]</div><br /> +</div><br /> + +<hr /> +<a name="class_methods"></a> +<h3>Class Methods</h3> +<div class="tags"> + <hr /> + <a name="methodbrowser"></a> + <h3>constructor browser <span class="smalllinenumber">[line 468]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>browser browser( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Constructor<br /><br /><p>Sets cookies to empty.</p><br /><br /><br /> + + + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodaddField"></a> + <h3>method addField <span class="smalllinenumber">[line 637]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void addField( +string +$fieldname, string +$value)</code> + </td></tr></table> + </td></tr></table><br /> + + addField()<br /><br /><p>Add a POST field to the headers.</p><br /><br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$fieldname</b> </td> + <td>field name</td> + </tr> + <tr> + <td class="type">string </td> + <td><b>$value</b> </td> + <td>value</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodaddHeader"></a> + <h3>method addHeader <span class="smalllinenumber">[line 647]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void addHeader( +string +$header)</code> + </td></tr></table> + </td></tr></table><br /> + + addHeader()<br /><br /><p>Add a HTTP header.</p><br /><br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$header</b> </td> + <td>The header, as it would appear in a HTTP request.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methoddownloadContents"></a> + <h3>method downloadContents <span class="smalllinenumber">[line 569]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>string downloadContents( +string +$host, integer +$port, mixed +$dis)</code> + </td></tr></table> + </td></tr></table><br /> + + downloadContents()<br /><br /><p>Send the request, and return the response.</p><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>The response.</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$host</b> </td> + <td>The host to connect to.</td> + </tr> + <tr> + <td class="type">integer </td> + <td><b>$port</b> </td> + <td>The port to connect to.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodgetUrlInfo"></a> + <h3>method getUrlInfo <span class="smalllinenumber">[line 522]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>array getUrlInfo( +string +$url)</code> + </td></tr></table> + </td></tr></table><br /> + + getUrlInfo()<br /><br /><p>gets some info about the url and returns them</p><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>Information about the URL</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$url</b> </td> + <td>the url</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodhtmlEncode"></a> + <h3>method htmlEncode <span class="smalllinenumber">[line 625]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>string htmlEncode( +string +$str)</code> + </td></tr></table> + </td></tr></table><br /> + + Encode html<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>encoded string</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$str</b> </td> + <td>string to encode</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodpostPage"></a> + <h3>method postPage <span class="smalllinenumber">[line 537]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void postPage( +string +$url, [mixed +$mode = 'POST'], [mixed +$display_voortgang = false])</code> + </td></tr></table> + </td></tr></table><br /> + + postPage()<br /><br /><p>Post the page</p><br /><br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$url</b> </td> + <td>the url</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodreset"></a> + <h3>method reset <span class="smalllinenumber">[line 475]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void reset( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Reset all vars.<br /><br /><br /><br /> + + + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodshowContents"></a> + <h3>method showContents <span class="smalllinenumber">[line 497]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>string showContents( +[bool +$md5 = true])</code> + </td></tr></table> + </td></tr></table><br /> + + showContents()<br /><br /><p>Return the source.</p><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>source of the posting page</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">bool </td> + <td><b>$md5</b> </td> + <td>check md5?</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> +</div><br /> + + + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:19 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/classtrees_RCTS2.html =================================================================== --- trunk/install_version2.0/docs/classtrees_RCTS2.html (rev 0) +++ trunk/install_version2.0/docs/classtrees_RCTS2.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,51 @@ +<html> +<head> +<title>Class Trees for Package RCTS2</title> +<link rel="stylesheet" type="text/css" href="media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="li_install.html">install</a><br /> + <a href="li_RCTS2.html">RCTS2</a><br /> + <a href="li_zip.html">zip</a><br /> + <br /><br /> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Class Trees for Package RCTS2</h1> +<hr /> +<div class="classtree">Root class browser</div><br> +<ul> +<li><a href="RCTS2/browser.html">browser</a></li></ul> + + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:19 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/classtrees_install.html =================================================================== --- trunk/install_version2.0/docs/classtrees_install.html (rev 0) +++ trunk/install_version2.0/docs/classtrees_install.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,46 @@ +<html> +<head> +<title>Class Trees for Package install</title> +<link rel="stylesheet" type="text/css" href="media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">install</td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="classtrees_install.html" class="menu">class tree: install</a> ] + [ <a href="elementindex_install.html" class="menu">index: install</a> ] + [ <a href="elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="li_install.html">install</a><br /> + <a href="li_RCTS2.html">RCTS2</a><br /> + <a href="li_zip.html">zip</a><br /> + <br /><br /> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Class Trees for Package install</h1> + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:19 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/classtrees_zip.html =================================================================== --- trunk/install_version2.0/docs/classtrees_zip.html (rev 0) +++ trunk/install_version2.0/docs/classtrees_zip.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,51 @@ +<html> +<head> +<title>Class Trees for Package zip</title> +<link rel="stylesheet" type="text/css" href="media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">zip</td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="classtrees_zip.html" class="menu">class tree: zip</a> ] + [ <a href="elementindex_zip.html" class="menu">index: zip</a> ] + [ <a href="elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="li_install.html">install</a><br /> + <a href="li_RCTS2.html">RCTS2</a><br /> + <a href="li_zip.html">zip</a><br /> + <br /><br /> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Class Trees for Package zip</h1> +<hr /> +<div class="classtree">Root class zip</div><br> +<ul> +<li><a href="zip/zip.html">zip</a></li></ul> + + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:19 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/elementindex.html =================================================================== --- trunk/install_version2.0/docs/elementindex.html (rev 0) +++ trunk/install_version2.0/docs/elementindex.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,291 @@ +<html> +<head> +<title>Element Index</title> +<link rel="stylesheet" type="text/css" href="media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">zip</td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="classtrees_zip.html" class="menu">class tree: zip</a> ] + [ <a href="elementindex_zip.html" class="menu">index: zip</a> ] + [ <a href="elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="li_RCTS2.html">RCTS2</a><br /> + <a href="li_install.html">install</a><br /> + <a href="li_zip.html">zip</a><br /> + <br /><br /> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<a name="top"></a> +<h1>Index of all elements</h1> + [ <a href="elementindex.html#a">a</a> ] + [ <a href="elementindex.html#b">b</a> ] + [ <a href="elementindex.html#c">c</a> ] + [ <a href="elementindex.html#d">d</a> ] + [ <a href="elementindex.html#e">e</a> ] + [ <a href="elementindex.html#f">f</a> ] + [ <a href="elementindex.html#g">g</a> ] + [ <a href="elementindex.html#h">h</a> ] + [ <a href="elementindex.html#i">i</a> ] + [ <a href="elementindex.html#l">l</a> ] + [ <a href="elementindex.html#m">m</a> ] + [ <a href="elementindex.html#o">o</a> ] + [ <a href="elementindex.html#p">p</a> ] + [ <a href="elementindex.html#r">r</a> ] + [ <a href="elementindex.html#s">s</a> ] + [ <a href="elementindex.html#u">u</a> ] + [ <a href="elementindex.html#z">z</a> ] + + <hr /> + <a name="a"></a> + <div> + <h2>a</h2> + <dl> + <dt><b>a</b></dt> + <dd>in file install.php, method <a href="zip/zip.html#methoda">zip::a()</a></dd> + <dt><b>addField</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodaddField">browser::addField()</a><br> addField()</dd> + <dt><b>addHeader</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodaddHeader">browser::addHeader()</a><br> addHeader()</dd> + <dt><b>add_slashes</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionadd_slashes">add_slashes()</a><br> Simple function to add slashes if m_q_gpc is off</dd> + <dt><b>array_add_slashes</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionarray_add_slashes">array_add_slashes()</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="b"></a> + <div> + <h2>b</h2> + <dl> + <dt><b>browser</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodbrowser">browser::browser()</a><br> Constructor</dd> + <dt><b>browser</b></dt> + <dd>in file install.php, class <a href="RCTS2/browser.html">browser</a><br> PHPBrowser class</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="c"></a> + <div> + <h2>c</h2> + <dl> + <dt><b>$cookies</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$cookies">browser::$cookies</a></dd> + <dt><b>$cookie_array</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$cookie_array">browser::$cookie_array</a></dd> + <dt><b>$ctrl_dir</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$ctrl_dir">zip::$ctrl_dir</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="d"></a> + <div> + <h2>d</h2> + <dl> + <dt><b>$data</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$data">browser::$data</a></dd> + <dt><b>$datasec</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$datasec">zip::$datasec</a></dd> + <dt><b>$datasec_len</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$datasec_len">zip::$datasec_len</a></dd> + <dt><b>$done</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$done">zip::$done</a></dd> + <dt><b>downloadContents</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methoddownloadContents">browser::downloadContents()</a><br> downloadContents()</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="e"></a> + <div> + <h2>e</h2> + <dl> + <dt><b>$eof_cdh</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$eof_cdh">zip::$eof_cdh</a></dd> + <dt><b>extract</b></dt> + <dd>in file install.php, method <a href="zip/zip.html#methodextract">zip::extract()</a></dd> + <dt><b>en.php</b></dt> + <dd>procedural page <a href="install/_version2.0_tmp_en_php.html">en.php</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="f"></a> + <div> + <h2>f</h2> + <dl> + <dt><b>$fields</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$fields">browser::$fields</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="g"></a> + <div> + <h2>g</h2> + <dl> + <dt><b>getUrlInfo</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodgetUrlInfo">browser::getUrlInfo()</a><br> getUrlInfo()</dd> + <dt><b>get_var</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionget_var">get_var()</a><br> This functions gets a var form POST GET COOKIE</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="h"></a> + <div> + <h2>h</h2> + <dl> + <dt><b>$http_headers</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$http_headers">browser::$http_headers</a></dd> + <dt><b>htmlEncode</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodhtmlEncode">browser::htmlEncode()</a><br> Encode html</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="i"></a> + <div> + <h2>i</h2> + <dl> + <dt><b>install_write</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functioninstall_write">install_write()</a><br> This function will make the config file.</dd> + <dt><b>install.php</b></dt> + <dd>procedural page <a href="RCTS2/_version2.0_install_php.html">install.php</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="l"></a> + <div> + <h2>l</h2> + <dl> + <dt><b>$length</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$length">zip::$length</a></dd> + <dt><b>lang_to_string</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionlang_to_string">lang_to_string()</a><br> Return a country name for country code</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="m"></a> + <div> + <h2>m</h2> + <dl> + <dt><b>md</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionmd">md()</a><br> Parse md5 code block.</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="o"></a> + <div> + <h2>o</h2> + <dl> + <dt><b>$old_offset</b></dt> + <dd>in file install.php, variable <a href="zip/zip.html#var$old_offset">zip::$old_offset</a></dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="p"></a> + <div> + <h2>p</h2> + <dl> + <dt><b>$path_info</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$path_info">browser::$path_info</a></dd> + <dt><b>pagefooter</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionpagefooter">pagefooter()</a><br> Page footer function</dd> + <dt><b>pageheader</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionpageheader">pageheader()</a><br> Page header function</dd> + <dt><b>postPage</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodpostPage">browser::postPage()</a><br> postPage()</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="r"></a> + <div> + <h2>r</h2> + <dl> + <dt><b>RCTS_ROOT_PATH</b></dt> + <dd>in file install.php, constant <a href="RCTS2/_version2.0_install_php.html#defineRCTS_ROOT_PATH">RCTS_ROOT_PATH</a></dd> + <dt><b>remove_comments</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionremove_comments">remove_comments()</a><br> This function will strip the sql comment lines out of an uploaded sql file specifically for mssql and postgres type files in the install....</dd> + <dt><b>remove_remarks</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionremove_remarks">remove_remarks()</a><br> This function will strip the sql comment lines out of an uploaded sql file</dd> + <dt><b>reset</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodreset">browser::reset()</a><br> Reset all vars.</dd> + <dt><b>rmdirr</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionrmdirr">rmdirr()</a><br> 25.07.2005</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="s"></a> + <div> + <h2>s</h2> + <dl> + <dt><b>$size</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$size">browser::$size</a></dd> + <dt><b>set_var</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionset_var">set_var()</a><br> This functions prepears var for store</dd> + <dt><b>showContents</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodshowContents">browser::showContents()</a><br> showContents()</dd> + <dt><b>split_sql_file</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionsplit_sql_file">split_sql_file()</a><br> This function will split an uploaded sql file into single sql statements.</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="u"></a> + <div> + <h2>u</h2> + <dl> + <dt><b>unset_global</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionunset_global">unset_global()</a><br> This function unsets an array of globals</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <hr /> + <a name="z"></a> + <div> + <h2>z</h2> + <dl> + <dt><b>zip</b></dt> + <dd>in file install.php, method <a href="zip/zip.html#methodzip">zip::zip()</a></dd> + <dt><b>zip</b></dt> + <dd>in file install.php, class <a href="zip/zip.html">zip</a><br> Zip class, from phpbb.com</dd> + </dl> + </div> + <a href="elementindex.html#top">top</a><br> + <div class="credit"> + <hr /> + Documentation generated on Fri, 08 Sep 2006 17:22:18 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/elementindex_RCTS2.html =================================================================== --- trunk/install_version2.0/docs/elementindex_RCTS2.html (rev 0) +++ trunk/install_version2.0/docs/elementindex_RCTS2.html 2006-09-08 15:26:17 UTC (rev 1943) @@ -0,0 +1,250 @@ +<html> +<head> +<title>Package RCTS2 Element Index</title> +<link rel="stylesheet" type="text/css" href="media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="li_RCTS2.html">RCTS2</a><br /> + <a href="li_install.html">install</a><br /> + <a href="li_zip.html">zip</a><br /> + <br /><br /> + <b>Files:</b><br /> + <div class="package"> + <a href="RCTS2/_version2.0_install_php.html"> install.php + </a><br> + </div><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="RCTS2/browser.html">browser</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<a name="top"></a> +<h1>Element index for package RCTS2</h1> + [ <a href="elementindex_RCTS2.html#a">a</a> ] + [ <a href="elementindex_RCTS2.html#b">b</a> ] + [ <a href="elementindex_RCTS2.html#c">c</a> ] + [ <a href="elementindex_RCTS2.html#d">d</a> ] + [ <a href="elementindex_RCTS2.html#f">f</a> ] + [ <a href="elementindex_RCTS2.html#g">g</a> ] + [ <a href="elementindex_RCTS2.html#h">h</a> ] + [ <a href="elementindex_RCTS2.html#i">i</a> ] + [ <a href="elementindex_RCTS2.html#l">l</a> ] + [ <a href="elementindex_RCTS2.html#m">m</a> ] + [ <a href="elementindex_RCTS2.html#p">p</a> ] + [ <a href="elementindex_RCTS2.html#r">r</a> ] + [ <a href="elementindex_RCTS2.html#s">s</a> ] + [ <a href="elementindex_RCTS2.html#u">u</a> ] + + <hr /> + <a name="a"></a> + <div> + <h2>a</h2> + <dl> + <dt><b>addField</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodaddField">browser::addField()</a><br> addField()</dd> + <dt><b>addHeader</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodaddHeader">browser::addHeader()</a><br> addHeader()</dd> + <dt><b>add_slashes</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionadd_slashes">add_slashes()</a><br> Simple function to add slashes if m_q_gpc is off</dd> + <dt><b>array_add_slashes</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionarray_add_slashes">array_add_slashes()</a></dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="b"></a> + <div> + <h2>b</h2> + <dl> + <dt><b>browser</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodbrowser">browser::browser()</a><br> Constructor</dd> + <dt><b>browser</b></dt> + <dd>in file install.php, class <a href="RCTS2/browser.html">browser</a><br> PHPBrowser class</dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="c"></a> + <div> + <h2>c</h2> + <dl> + <dt><b>$cookies</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$cookies">browser::$cookies</a></dd> + <dt><b>$cookie_array</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$cookie_array">browser::$cookie_array</a></dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="d"></a> + <div> + <h2>d</h2> + <dl> + <dt><b>$data</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$data">browser::$data</a></dd> + <dt><b>downloadContents</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methoddownloadContents">browser::downloadContents()</a><br> downloadContents()</dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="f"></a> + <div> + <h2>f</h2> + <dl> + <dt><b>$fields</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$fields">browser::$fields</a></dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="g"></a> + <div> + <h2>g</h2> + <dl> + <dt><b>getUrlInfo</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodgetUrlInfo">browser::getUrlInfo()</a><br> getUrlInfo()</dd> + <dt><b>get_var</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionget_var">get_var()</a><br> This functions gets a var form POST GET COOKIE</dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="h"></a> + <div> + <h2>h</h2> + <dl> + <dt><b>$http_headers</b></dt> + <dd>in file install.php, variable <a href="RCTS2/browser.html#var$http_headers">browser::$http_headers</a></dd> + <dt><b>htmlEncode</b></dt> + <dd>in file install.php, method <a href="RCTS2/browser.html#methodhtmlEncode">browser::htmlEncode()</a><br> Encode html</dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="i"></a> + <div> + <h2>i</h2> + <dl> + <dt><b>install_write</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functioninstall_write">install_write()</a><br> This function will make the config file.</dd> + <dt><b>install.php</b></dt> + <dd>procedural page <a href="RCTS2/_version2.0_install_php.html">install.php</a></dd> + </dl> + </div> + <a href="elementindex_RCTS2.html#top">top</a><br> + <hr /> + <a name="l"></a> + <div> + <h2>l</h2> + <dl> + <dt><b>lang_to_string</b></dt> + <dd>in file install.php, function <a href="RCTS2/_version2.0_install_php.html#functionlang_to_string">lang_to_strin... [truncated message content] |
From: <pau...@us...> - 2006-09-08 18:13:13
|
Revision: 1944 http://svn.sourceforge.net/rcts/?rev=1944&view=rev Author: paulsohier Date: 2006-09-08 11:12:57 -0700 (Fri, 08 Sep 2006) Log Message: ----------- Bugfixes Modified Paths: -------------- trunk/install_version2.0/install.php trunk/version1.0/includes/classes/class.core.php trunk/version1.0/includes/functions.php trunk/version1.0/templates/rcts/error.html trunk/version1.0/templates/rcts/footer.html Modified: trunk/install_version2.0/install.php =================================================================== --- trunk/install_version2.0/install.php 2006-09-08 15:26:17 UTC (rev 1943) +++ trunk/install_version2.0/install.php 2006-09-08 18:12:57 UTC (rev 1944) @@ -12,6 +12,7 @@ */ define('IN_INSTALL',true); define('RCTS_ROOT_PATH', dirname(__FILE__)); + if(version_compare(phpversion(),'6.0.0-dev','>=')) { /** @@ -35,8 +36,7 @@ {//5 biggest step? :) $stap = 1; } -pageheader(); -error_reporting(E_ALL ^ E_NOTICE );//Don't show errors. +error_reporting(E_ALL/* ^ E_NOTICE*/ );//Don't show errors. /*$error = new error(); $old = set_error_handler(array($error, 'trigger'));*/ //First, we do a array check. @@ -62,10 +62,10 @@ else { $language = get_var('lang'); - if($language === false) + /*if($language === false) { trigger_error("Some post vars are missing!",E_USER_ERROR); - } + }*/ } $MD = false; $browser = new browser; @@ -76,7 +76,7 @@ md($tmp,$MD); if(!count($MD)) { - trigger_error("Error retreving md5 string check",E_USER_ERROR) + trigger_error("Error retreving md5 string check",E_USER_ERROR); } @@ -113,7 +113,7 @@ } } }*/ - +$av = array('en'); //if ($language === false) { $language = 'en'; @@ -135,6 +135,7 @@ $lang = array(); //include('tmp/'.$language.'.php'); include('tmp/en.php'); + $disabled = ''; pageheader(); switch($stap){ @@ -288,7 +289,7 @@ $o = fopen("tmp/$db_type"."class.php","w"); fwrite($o,$return); fclose($o); - include("tmp/$db_type"."class.php"); + include("tmp/{$db_type}class.php"); $db_class = new db_class; $db_class->connect($host,$user,$pass,$db); @@ -405,8 +406,8 @@ $browser->postPage($use[4],'GET',true); $return = $browser->showContents (false); $p = fopen('cache/config.php', 'w'); - fwrite($o,$return); - fclose($o); + fwrite($p,$return); + fclose($p); print $lang['download_ready']; $o = fopen("tmp.zip","w"); @@ -570,6 +571,7 @@ if (preg_match('/fsockopen/', @ini_get('disable_functions')) || !function_exists('fsockopen')) { return false; } + $port = $errornr = $errorstr = ''; $connection = fsockopen($host, $port, $errornr, $errorstr, 10); if(!$connection) { trigger_error("Could not connect to ".$host." on port ".$port.":<br />".$errornr.". ".$errorstr); @@ -584,11 +586,11 @@ fwrite($connection, $http_headers); $is = $begin = false; $bytes = 0; - $total = 0; while(!feof($connection)) { $tmp = fread($connection, 1024); $contents .= $tmp; if($dis){ + $match = array(); if(!$is && preg_match("#Content-Length: (.*?)\n#si",$contents,$match)){ $length = intval($match[1]); $this->size = $length; @@ -1186,7 +1188,7 @@ } } closedir($sourcedir); - if($result=@rmdir($target)) + if(@rmdir($target)) { return true; } Modified: trunk/version1.0/includes/classes/class.core.php =================================================================== --- trunk/version1.0/includes/classes/class.core.php 2006-09-08 15:26:17 UTC (rev 1943) +++ trunk/version1.0/includes/classes/class.core.php 2006-09-08 18:12:57 UTC (rev 1944) @@ -235,7 +235,7 @@ $mel = sprintf($this->lang['old_check'],"<a href='".base(true)."&check=1'>","</a>"); if($offline && !$check) { - trigger_error($this->lang['old_version'] . "<br />" . $mel,E_USER_WARNING); + trigger_error($this->lang['old_version'] . "<br />" . $mel,E_USER_ERROR); } if($check) { @@ -322,7 +322,7 @@ $cache->write(RCTS_ROOT_PATH . "/cache/version.txt","w",4,array(),$x); if($o) { - trigger_error($this->lang['old_version'] . "<br />" . $mel,E_USER_WARNING); + trigger_error($this->lang['old_version'] . "<br />" . $mel,E_USER_ERROR); } } } @@ -773,6 +773,7 @@ * * @public * @returns bool true if the user is logged in, false if they are not + * @todo Rewrite this function, not safe yet. */ function UserLoggedIn() { @@ -782,7 +783,7 @@ $pass = get_var('ww'); $auto = get_var("autologin"); return $this->UserLogIn($uname,$pass,$auto); - }elseif ($_SESSION['uid']) { + }elseif (isset($_SESSION['uid'])) { return true; } else { return false; @@ -1087,7 +1088,6 @@ } else { - $txt .= sprintf('<h3>%s</h3>',$caption); if(isset($this->lang[$errmsg])) { $errmsg = $this->lang[$errmsg]; @@ -1123,7 +1123,8 @@ $template->add_file(array('error_body' => 'error.html')); } $template->block('errors',array( - 'errortxt' => $txt + 'errortxt' => $txt, + 'title' => $caption )); if($DIE) Modified: trunk/version1.0/includes/functions.php =================================================================== --- trunk/version1.0/includes/functions.php 2006-09-08 15:26:17 UTC (rev 1943) +++ trunk/version1.0/includes/functions.php 2006-09-08 18:12:57 UTC (rev 1944) @@ -143,7 +143,7 @@ $template->parse("footer"); $c = ob_get_contents(); - ob_end_clean(); + @ob_end_clean(); if($core->config_get('mod_rewrite')){ error_reporting(E_ALL); $c = preg_replace("#stats.php\?mode=([a-z0-9]*)#si","mode/\\1.html?",$c); Modified: trunk/version1.0/templates/rcts/error.html =================================================================== --- trunk/version1.0/templates/rcts/error.html 2006-09-08 15:26:17 UTC (rev 1943) +++ trunk/version1.0/templates/rcts/error.html 2006-09-08 18:12:57 UTC (rev 1944) @@ -2,7 +2,7 @@ <div class="menu"> <table width="100%" cellpadding="0" cellspacing="0"> <tr class="tr_kop"> - <td class="td_kop">{L_ERROR}</td> + <td class="td_kop">{errors.title}</td> </tr> </table> <div class="menu_content"> Modified: trunk/version1.0/templates/rcts/footer.html =================================================================== --- trunk/version1.0/templates/rcts/footer.html 2006-09-08 15:26:17 UTC (rev 1943) +++ trunk/version1.0/templates/rcts/footer.html 2006-09-08 18:12:57 UTC (rev 1944) @@ -104,7 +104,7 @@ Really coding group, 2005-{YEAR} --> <a href="http://www.reallycoding.nl">© by Really Coding Group, 2005-{YEAR}</a> || {L_VERSION}: {VERSION} {SQL_Q}: {sql}. {L_TIME_RUN}: {TIME} {L_SEC} || - <!-- A IF admin --> + <!-- A IF admin --> <a href="admin/">{L_CONF}</a> <!-- ELSE --> <a href="admin/">{L_LOGIN}</a> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-09 09:08:52
|
Revision: 1945 http://svn.sourceforge.net/rcts/?rev=1945&view=rev Author: paulsohier Date: 2006-09-09 02:08:23 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Again fixes. (from yesterday :|) Modified Paths: -------------- trunk/install_version2.0/install.php trunk/version1.0/includes/classes/class.layout.php Added Paths: ----------- trunk/install_version2.0/tmp/class.cache.php trunk/install_version2.0/tmp/mysql_install.sql trunk/version1.0/190.zip Modified: trunk/install_version2.0/install.php =================================================================== --- trunk/install_version2.0/install.php 2006-09-08 18:12:57 UTC (rev 1944) +++ trunk/install_version2.0/install.php 2006-09-09 09:08:23 UTC (rev 1945) @@ -135,7 +135,8 @@ $lang = array(); //include('tmp/'.$language.'.php'); include('tmp/en.php'); - +include('tmp/class.cache.php'); +$cache = new cache(); $disabled = ''; pageheader(); switch($stap){ @@ -417,7 +418,7 @@ flush(); print "<script language='javascript'>document.getElementById('progress').style.width = '100%';</script>\n<br />"; print $lang['ext_ready']; - print $lang['down_lang']; +/* print $lang['down_lang']; $browser->postPage('http://2.reallycoding.nl/lang/'.$language.'.zip','GET',true); $return = $browser->showContents (false); @@ -432,16 +433,16 @@ $zip->length = $browser->size; $browser->reset(); $zip->extract(''); - print "<script language='javascript'>document.getElementById('progress').style.width = '100%';</script>\n<br />"; + print "<script language='javascript'>document.getElementById('progress').style.width = '100%';</script>\n<br />"; */ print $lang['removing']; unlink("includes/config.php"); copy("tmp/config.php","includes/config.php"); unlink('tmp.zip'); - unlink('lang_tmp.zip'); +// unlink('lang_tmp.zip'); rmdirr('tmp'); //Remove this file ;) unlink('install.php'); - print $lang['done']; + print "<br />" . $lang['done']; $disabled = 'style="display:none;"'; break; @@ -498,6 +499,7 @@ function showContents($md5 = true) { if(strlen($this -> data) > 0) { list($header) = explode("\r\n\r\n", $this -> data); + list( , $content) = explode($header, $this -> data); $content = substr($content, 4); if($md5){ @@ -571,7 +573,6 @@ if (preg_match('/fsockopen/', @ini_get('disable_functions')) || !function_exists('fsockopen')) { return false; } - $port = $errornr = $errorstr = ''; $connection = fsockopen($host, $port, $errornr, $errorstr, 10); if(!$connection) { trigger_error("Could not connect to ".$host." on port ".$port.":<br />".$errornr.". ".$errorstr); @@ -585,7 +586,7 @@ fwrite($connection, $http_headers); $is = $begin = false; - $bytes = 0; + $bytes = $length = 0; while(!feof($connection)) { $tmp = fread($connection, 1024); $contents .= $tmp; @@ -596,17 +597,17 @@ $this->size = $length; $is = true; } - if($begin){ + if($begin && $is){ $bytes += 1024; } - if(!$begin && eregi("\r\n\r\n",$contents)){ + if(!$begin && eregi("\r\n\r\n",$contents) && $is){ $begin = true; $explode = explode("\r\n\r\n",$contents); $explode = $explode[1]; $bytes += strlen($explode) - 8; unset($explode); } - if($begin){ + if($begin && $is && $length > 0){ $tmp = ($bytes / $length) * 100; print "<script language='javascript'>document.getElementById('progress').style.width = '$tmp%';</script>\n"; ob_flush(); @@ -721,11 +722,7 @@ $str = (!empty($str)) ? $str . '/' . $folder : $folder; if (!is_dir($str)) { - if (!mkdir($str, 0777)) - { - trigger_error("Could not create directory $folder"); - } - chmod($str, 0777); + $cache->_mkdir($str); } } } @@ -787,7 +784,7 @@ $this->a(8); continue 2; } - trigger_error("Unexpected header, ending loop"); + //trigger_error("Unexpected header, ending loop"); break 2; } $dd_try = false; Added: trunk/install_version2.0/tmp/class.cache.php =================================================================== --- trunk/install_version2.0/tmp/class.cache.php (rev 0) +++ trunk/install_version2.0/tmp/class.cache.php 2006-09-09 09:08:23 UTC (rev 1945) @@ -0,0 +1,329 @@ +<?php +/** + * Cache files + * @package RCTS2 + * @version $Id$ + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Really Coding Group, 2005-2006 + * @author Really Coding Group + */ +if(!defined('IN_STATS')) +{ + die('Hacking Attempt'); +} +/** + * Cache class + * + * @package core + */ +class cache{ + /** + * Loads cache files into the class. + */ + function load(){ + $use_ftp = get_var('use_ftp'); + if($use_ftp){ + $this->uf = true; + $this->ftp_parameter = array(); + } + } + + /** + * Makes a directory. + * @param string $dir Directory to create. + * @access private + */ + function _mkdir($dir){ + if(file_exists($dir)){ + return true; + } + if(!$this->uf){ + $dir = str_replace(RCTS_ROOT_PATH,"",$dir); + $dir = str_replace("\\","/",$dir); + $t = explode("/",$dir); + $tm = RCTS_ROOT_PATH . "/"; + $goed = true; + for($i = 0; $i < count($t); $i++){ + $tm .= $t[$i] . "/"; + if(!file_exists($tm)){ + $goed = $goed && mkdir($tm,0777); + } + } + return $goed; + }else{ + if(!$this->ftp){ + global $config; + $this->ftp = ftp_connect(get_var('ftp_server')); + $login_result = ftp_login($this->ftp, get_var('ftp_gb'), get_var('ftp_ww')); + if (!$this->ftp || !$login_result) { + trigger_error("Could not connect to ftp server.",E_USER_ERROR); + } + $u = true; + } + ftp_chdir($this->ftp,"/"); + $dir = get_var('ftp_root') . str_replace(RCTS_ROOT_PATH,"",$dir); + $e = explode("/",$dir); + $t = ""; + for($i = 0; $i < (count($e) - 1);$i++){ + if(!file_exists($t . "/" . $e[$i])){ + ftp_chdir($this->ftp,$t); + $dir = $e[$i]; + if(!ftp_mkdir($this->ftp,$dir)){ + trigger_error("Could not make $dir.",E_USER_ERROR); + }else{ + ftp_chmod ($this->ftp,777,get_var('ftp_root') . $dir); + } + } + $t .= "/".$e[$i]; + } + ftp_chdir($this->ftp,$t); + $dir = $e[(count($e) - 1)]; + if(!ftp_mkdir($this->ftp,$dir)){ + trigger_error("Could not make $dir.",E_USER_ERROR); + }else{ + ftp_chmod ($this->ftp,777,get_var('ftp_root') . $dir); + } + if($u) + { + ftp_close($this->ftp); + $this->ftp = false; + } + return true; + } + } + /** + * Writes a file. + * @param string $file File to create. + * @param string $mode fopen() mode for the file. + * @param integer $array How to get the data to write the file. + * @param string $row File data for $array 3 or 4. + */ + function write($file,$mode,$array = 1,$parameter = array(),$row = false){ + switch($array){ + case 1: + $write = $this->row; + break; + case 2: + $write = explode("\n",$this->row); + break; + case 3: + $write = $row; + break; + case 4: + $write = explode("\n",$row); + break; + default:{ + trigger_error("No correct file information mode",E_USER_ERROR); + } + } + if(!is_array($write)){ + trigger_error("File information error",E_USER_ERROR); + } + if(empty($file)){ + trigger_error("File empty",E_USER_ERROR); + } + if($this->uf){ + global $config; + $this->ftp_parameter['file'] = $file; + $this->ftp_parameter['mode'] = $mode; + $this->ftp = ftp_connect($config->config['ftp_server']); + $login_result = ftp_login($this->ftp, $config->config['ftp_gb'], $config->config['ftp_ww']); + if (!$this->ftp || !$login_result) { + trigger_error("Could not connect to ftp server.",E_USER_ERROR); + } +// ftp_chdir($this->ftp,$config['ftp_root']); + $this->ftp_parameter['ftp_mode'] = (isset($parameter['ftp_mode'])) ? $parameter['ftp_mode'] : FTP_ASCII; + $this->ftp_parameter['dir'] = (isset($parameter['dir'])) ? $parameter['dir'] : ''; + } + $file2 = explode("/",$file); + if(isset($parameter['mkdir']) && $parameter['mkdir'] && isset($parameter['dir']) && !file_exists($parameter['dir'])){ + $tmp = $this->_mkdir($parameter['dir']); + if(!$tmp){ + trigger_error("Could not create ".$parameter['dir'].".",E_USER_ERROR); + } + while(!file_exists($parameter['dir']) && !($tmp = $this->_mkdir($parameter['dir']))){ + + if(!$tmp){ + trigger_error("Could not create ".$parameter['dir'].".",E_USER_ERROR); + } + } + } + $this->_fopen($file,$mode); + $this->_fwrite($write); + $this->_fclose(); + if($this->uf){ + ftp_quit($this->ftp); + } + } + /** + * Opens a file. + * @param string $file File to open + * @param string $mode Mode to open the file in. + * @access private + */ + + function _fopen($file,$mode){ + if($this->uf){ + global $config; + return true; + }else{ + $this->_fopen = fopen($file,$mode); + if(!$this->_fopen){ + trigger_error("Could not open $file in mode $mode",E_USER_ERROR); + } + return true; + } + } + /** + * Writes to the open file. + * @param string $write Text to write, in an array. + * @access private + */ + + function _fwrite($write){ + $write = implode("\n",$write); + if(strlen($write) <= 0){ + return; + } + if($this->uf){ + $f = $this->ftp_parameter['file']; + $m = $this->ftp_parameter['mode']; + $m = str_replace(array("b","t"),array("",""),m); + $modes = array("r","r+","a","a+"); + if(in_array($m,$modes)){ + $tmp = file_get_contents($f); + $b = array("r","r+"); + if(in_array($m,$b)){ + $tmp = $write.$tmp; + }else{ + $tmp = $tmp.$write; + } + }else{ + $tmp = $write; + } + $temp = tmpfile(); + fwrite($temp, $tmp); + fseek($temp,0); + $f2 = explode("/",$f); + $f = $f2[(count($f2) - 1)]; + unset($f2[(count($f2) - 1)]); + $f2 = implode("/",$f2) . "/"; + $f2 = str_replace(RCTS_ROOT_PATH,"",$f2); + global $config; + $f2 = $config->config['ftp_root'] . $f2; + ftp_chdir($this->ftp,$f2); + ftp_delete($this->ftp,$f); + $t = ftp_fput($this->ftp,$f,$temp,$this->ftp_parameter['ftp_mode']); + if(!$t){ + global $config; + trigger_error("Could not write $f with $m to ftp server ".$config->config['ftp_server'].".",E_USER_ERROR); + } + $this->ftp_parameter = array(); + return true; + }else{ + return fwrite($this->_fopen,$write); + } + } + /** + * Opens the open file. + * @return boolean Did it succeed? + * @access private + */ + function _fclose(){ + if($this->uf){ + return true; + }else{ + return fclose($this->_fopen); + } + return ""; + } + /** + * Writes the .htaccess file, and adds the RewriteRules. + * @param boolean $en Enable or disable? + * @example + * <code> + * <?php + * $config->write_htacces(true); // Enable + * $config->write_htacces(false); // Disable + * ?> + * </code> + */ + function write_htacces($en){ + global $cache; + $array = array( + "RewriteEngine On", + // "RewriteBase /", + "RewriteRule ^mode/([a-zA-Z0-9]*).html stats.php?%{QUERY_STRING}&mode=$1", + "RewriteRule ^img/uniek/([a-zA-Z0-9]*)/ graph.php?%{QUERY_STRING}&graph=uniek&soort=$1", + "RewriteRule ^img/([a-zA-Z0-9]*)/ graph.php?%{QUERY_STRING}&graph=$1" + ); + $array2 = array('','',''); + if(file_exists(RCTS_ROOT_PATH . '/.htaccess')){ + $file = file_get_contents(RCTS_ROOT_PATH . '/.htaccess'); + }else{ + $file = ""; + if(!$en){ + return true; + } + } + $file = str_replace($array,$array2,$file); + + if($en){ + $file .= "\r\n"; + for($i = 0; $i < count($array);$i++){ + $file .= $array[$i] . "\r\n"; + } + } + $cache->write(RCTS_ROOT_PATH . '/.htaccess',"w",4,array(),$file); + return true; + } + /** + * Formats an array to save + * + * @param array $array array to save + * @return array + */ + function format_array($array) + { + if(is_array($array)){ + $lines = array(); + foreach ($array as $k => $v) + { + if (is_array($v)) + { + $lines[] = "'$k'=>" . $this->format_array($v); + } + else if (is_int($v)) + { + $lines[] = "'$k'=>$v"; + } + else if (is_bool($v)) + { + $lines[] = "'$k'=>" . (($v) ? 'true' : 'false'); + } + else + { + $lines[] = "'$k'=>'" . str_replace("'", "\\'", str_replace('\\', '\\\\', $v)) . "'"; + } + } + return 'array(' . implode(',', $lines) . ')'; + }else{ + return 'array()'; + } + } +} +if (!function_exists('ftp_chmod')) { + /** + * This functions replaces the function of ftp_chmod + * @param mixed $ftpstream Stream from ftp_connect + * @param integer $chmod New chmod + * @param string $file file + * @return boolean Did it succeed? + */ + function ftp_chmod($ftpstream,$chmod,$file) + { + $result = ftp_site($ftpstream, "CHMOD ".$chmod." ".$file); + return $result;//will result TRUE or FALSE + } +} +?> Added: trunk/install_version2.0/tmp/mysql_install.sql =================================================================== --- trunk/install_version2.0/tmp/mysql_install.sql (rev 0) +++ trunk/install_version2.0/tmp/mysql_install.sql 2006-09-09 09:08:23 UTC (rev 1945) @@ -0,0 +1,133 @@ +# +# Really Coding Traffic Statistics 2 +# Begin: October, 3rd 2005 +# install.sql +# $Id: install.sql 1743 2006-04-19 14:24:55Z eroeling $ +# +# USE ALWAYS AS PREFIX rcts !!! +# After every query must be come a ; + +#CREATE TABLE `rcts_sessions` ( +# `sid` varchar(32) NOT NULL default '', +# `tijd` int(10) NOT NULL default '0', +# `counted` int(1) NOT NULL default '0', +# UNIQUE KEY `sid` (`sid`) +#); +CREATE TABLE `rcts_indentifer` ( + `id` int(10) NOT NULL auto_increment, + `indentifer` varchar(255) NOT NULL default '', + `name` varchar(255) NOT NULL default '', + `active` int(1) NOT NULL DEFAULT '1', + PRIMARY KEY (`id`) +); + +CREATE TABLE rcts_id_redirect ( + id_old int(11) NOT NULL default '0', + id_new int(11) NOT NULL default '0' +); +INSERT INTO `rcts_indentifer` VALUES ('1', 'Total', 'Total','1'); + +CREATE TABLE `rcts_cache` ( + `id` int(10) NOT NULL auto_increment, + `graph` varchar(255) NOT NULL default '', + `tijd` int(10) NOT NULL default '0', + `idid` int(20) NOT NULL default '0', + `extra` longtext NOT NULL, + PRIMARY KEY (`id`) +); + + + +CREATE TABLE `rcts_stats_stats` ( +`mode` VARCHAR( 50 ) NOT NULL , +`visit` BIGINT( 255 ) NOT NULL , +PRIMARY KEY ( `mode` ) +); +CREATE TABLE `rcts_plugins` ( + `id` bigint(21) NOT NULL auto_increment, + `plugin_name` varchar(100) NOT NULL default '', + `plugin_hooks` TINYTEXT NOT NULL default '', + `plugin_dhooks` TINYTEXT NOT NULL default '', + `version` varchar(20) NOT NULL default '0', + `installed` int(1) NOT NULL default '0', + `active` int(1) NOT NULL default '0', + `status` int(1) NOT NULL default '4', + PRIMARY KEY (`id`) +); + +CREATE TABLE rcts_plugin_options( + naam VARCHAR(64) NOT NULL, + waarde VARCHAR(255) NOT NULL, + opttype VARCHAR(25) NOT NULL, + optdesc TEXT NOT NULL, + pluginn VARCHAR(100) NOT NULL, + UNIQUE(naam) +); + +CREATE TABLE `rcts_time_online` ( +`userID` VARCHAR( 255 ) NOT NULL , +`userIP` VARCHAR( 40 ) NOT NULL , +`userTO` VARCHAR( 200 ) NOT NULL , +`userTT` VARCHAR( 200 ) NOT NULL , +`userST` VARCHAR( 50 ) NOT NULL , +`userPV` INT( 20 ) NOT NULL, +`idid` INT( 20 ) NOT NULL +); + +CREATE TABLE `rcts_header_check` ( +`ID` MEDIUMINT( 21 ) NOT NULL AUTO_INCREMENT , +`Header` TINYTEXT, +`Count` BIGINT( 50 ) DEFAULT '0' NOT NULL , +`Status` INT( 1 ) DEFAULT '2' NOT NULL , +PRIMARY KEY ( `ID` ) +); + +CREATE TABLE rcts_calendar ( + stat_id int(10) unsigned NOT NULL auto_increment, + stat_type varchar(255) NOT NULL default '', + stat_value varchar(255) NOT NULL default '', + stat_count int(10) unsigned NOT NULL default '0', + stat_type_id int(10) unsigned NOT NULL default '0', + idid int(20) unsigned NOT NULL default '0', + stat_timestamp int(10) unsigned NOT NULL default '0', + stat_time_array longtext NOT NULL, + PRIMARY KEY (stat_id) +); +CREATE TABLE `rcts_layout` ( + `id` bigint(21) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `content` longtext NOT NULL, + `orderd` decimal(10,1) NOT NULL, + PRIMARY KEY (`id`) +); +INSERT INTO `rcts_layout` (`id`, `name`, `content`, `orderd`) VALUES (1, 'stats_main', 'a:10:{i:1;s:11:"visitsToday";i:2;s:14:"last30daysDisp";i:3;s:11:"topBrowsers";i:4;s:9:"topColors";i:5;s:13:"topEntryPages";i:6;s:8:"topFlash";i:7;s:12:"topLanguages";i:8;s:5:"topOs";i:9;s:11:"topReferers";i:10;s:14:"topResolutions";}', '1.0'), +(2, 'stats_time', 'a:7:{i:1;s:5:"Hours";i:2;s:5:"DaysW";i:3;s:5:"DaysM";i:4;s:9:"MonthDisp";i:5;s:13:"TimezonesDisp";i:6;s:8:"LoadTime";i:7;s:10:"OnlineTime";}', '2.0'), +(3, 'stats_load', 'a:3:{i:1;s:8:"LoadTime";i:2;s:7:"Average";i:3;s:13:"AvarageOnline";}', '3.0'),(4, 'uniek', 'a:1:{i:0;s:9:"uniekDisp";}', '3.0'); + +CREATE TABLE `rcts_milestones` ( + `id` int(11) NOT NULL auto_increment, + `soort` varchar(40) NOT NULL, + `goal` int(11) NOT NULL, + `reached` int(11) NOT NULL, + PRIMARY KEY (`id`) +); + +CREATE TABLE `rcts_users` ( + `id` INT( 15 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , + `uname` VARCHAR( 255 ) NOT NULL , + `pass` VARCHAR( 255 ) NOT NULL , + `name` VARCHAR( 255 ) NOT NULL , + `email` VARCHAR( 255 ) NOT NULL , + `is_admin` INT( 1 ) NOT NULL DEFAULT '0', + `lastlogin` VARCHAR( 255 ) NOT NULL +); + +CREATE TABLE `rcts_sessions` ( + `sessionid` text NOT NULL, + `uid` int(15) NOT NULL default '0', + `ip` varchar(255) NOT NULL, + `starttime` varchar(255) NOT NULL, + `lastaction` varchar(255) NOT NULL, + `rememberme` int(1) NOT NULL default '0', + `vars` text NOT NULL +); \ No newline at end of file Added: trunk/version1.0/190.zip =================================================================== (Binary files differ) Property changes on: trunk/version1.0/190.zip ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/version1.0/includes/classes/class.layout.php =================================================================== --- trunk/version1.0/includes/classes/class.layout.php 2006-09-08 18:12:57 UTC (rev 1944) +++ trunk/version1.0/includes/classes/class.layout.php 2006-09-09 09:08:23 UTC (rev 1945) @@ -31,7 +31,7 @@ } else { - $sql = "Select * FROM ".RCTS_LAYOUT_TABLE." ORDER BY `order` ASC LIMIT 1"; + $sql = "Select * FROM ".RCTS_LAYOUT_TABLE." ORDER BY `orderd` ASC LIMIT 1"; $res = $db->sql_query($sql); $row = $db->sql_fetchrow($res); $mode = $row['id']; @@ -47,7 +47,7 @@ } else { - $sql = "Select * FROM ".RCTS_LAYOUT_TABLE." ORDER BY `order` ASC LIMIT 1"; + $sql = "Select * FROM ".RCTS_LAYOUT_TABLE." ORDER BY `orderd` ASC LIMIT 1"; } $res = $db->sql_query($sql); if($db->sql_numrows($res) == 0){ @@ -132,7 +132,7 @@ { $newName = get_var('New'); $content = serialize(array()); - $sql = "INSERT INTO ".RCTS_LAYOUT_TABLE." ( `name`,`order`,`content`) VALUES('".$newName."','0.5','$content')"; + $sql = "INSERT INTO ".RCTS_LAYOUT_TABLE." ( `name`,`orderd`,`content`) VALUES('".$newName."','0.5','$content')"; $db->sql_query($sql); return true; @@ -155,7 +155,7 @@ elseif($do=="up") { $id = get_var('id'); - $sql = "SELECT `order` + $sql = "SELECT `orderd` FROM ".RCTS_LAYOUT_TABLE." WHERE id='".$id."'"; $res = $db->sql_query($sql); @@ -164,10 +164,10 @@ $orderNow = $row['order']; $sql = "SELECT id, - `order` + `orderd` FROM ".RCTS_LAYOUT_TABLE." WHERE `order`<'" . $orderNow . "' - ORDER BY `order` ASC + ORDER BY `orderd` ASC LIMIT 0,1"; $res = $db->sql_query($sql); @@ -176,12 +176,12 @@ $idFrom = $row['id']; $sql = "UPDATE ".RCTS_LAYOUT_TABLE." - SET `order` = $orderNow + SET `orderd` = $orderNow WHERE id ='".$idFrom."'"; $db->sql_query($sql); $sql = "UPDATE ".RCTS_LAYOUT_TABLE." - SET `order`=$orderAfther + SET `orderd`=$orderAfther WHERE id='".$id."'"; $db->sql_query($sql); return true; @@ -189,32 +189,32 @@ elseif($do=="down") { $id = get_var('id'); - $sql = "SELECT `order` + $sql = "SELECT `orderd` FROM ".RCTS_LAYOUT_TABLE." WHERE id='".$id."'"; $res = $db->sql_query($sql); $row = $db->sql_fetchrow($res); - $orderNow = $row['order']; + $orderNow = $row['orderd']; $sql = "SELECT id, - `order` + `orderd` FROM ".RCTS_LAYOUT_TABLE." - WHERE `order`>'" . $orderNow . "' - ORDER BY `order` ASC + WHERE `orderd`>'" . $orderNow . "' + ORDER BY `orderd` ASC LIMIT 0,1"; $res = $db->sql_query($sql); $row = $db->sql_fetchrow($res); - $orderAfther = $row['order']; + $orderAfther = $row['orderd']; $idFrom = $row['id']; $sql = "UPDATE ".RCTS_LAYOUT_TABLE." - SET `order` = $orderNow + SET `orderd` = $orderNow WHERE id ='".$idFrom."'"; $db->sql_query($sql); $sql = "UPDATE ".RCTS_LAYOUT_TABLE." - SET `order`=$orderAfther + SET `orderd`=$orderAfther WHERE id='".$id."'"; $db->sql_query($sql); return true; @@ -231,7 +231,7 @@ function getTabs() { global $db; - $sql = "SELECT * FROM ".RCTS_LAYOUT_TABLE." order by `order` ASC"; + $sql = "SELECT * FROM ".RCTS_LAYOUT_TABLE." order by `orderd` ASC"; $res = $db->sql_query($sql); $result = array(); @@ -245,7 +245,7 @@ global $db; $main_menu_arr = array(); $i = 0; - $sql = "Select * FROM ".RCTS_LAYOUT_TABLE . " ORDER BY `order` ASC"; + $sql = "Select * FROM ".RCTS_LAYOUT_TABLE . " ORDER BY `orderd` ASC"; $res = $db->sql_query($sql); while($row = $db->sql_fetchrow($res)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-09 11:55:41
|
Revision: 1947 http://svn.sourceforge.net/rcts/?rev=1947&view=rev Author: paulsohier Date: 2006-09-09 04:55:29 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Install is working :D:D:D Modified Paths: -------------- trunk/install_version2.0/install.php trunk/install_version2.0/tmp/class.cache.php trunk/install_version2.0/tmp/en.php trunk/schemas/server.txt Property Changed: ---------------- trunk/install_version2.0/tmp/class.cache.php Modified: trunk/install_version2.0/install.php =================================================================== --- trunk/install_version2.0/install.php 2006-09-09 09:59:05 UTC (rev 1946) +++ trunk/install_version2.0/install.php 2006-09-09 11:55:29 UTC (rev 1947) @@ -137,6 +137,7 @@ include('tmp/en.php'); include('tmp/class.cache.php'); $cache = new cache(); +$cache->load(); $disabled = ''; pageheader(); switch($stap){ @@ -165,7 +166,39 @@ <?php break; case 2: - + ?> +<tr> + <td colspan="2"><strong><?php echo $lang['ftp_info']; ?>:</strong ></td> +</tr> +<tr> +<td colspan="2"><?php echo $lang['ftp_info2']; ?></td> +</tr> + <?php + if(extension_loaded("ftp")) + { + ?> +<tr style="background-color: #EFEFEF;"> +<td><?php echo $lang['use_ftp']; ?></td> +<td><input type="checkbox" name="use_ftp" value="1" /><?php $lang['yes']; ?></td> +</tr> + <?php + $str = "<tr style=\"background-color: #EFEFEF;\"> + <td>%s</td> + <td><input type=\"text\" name=\"%s\" value=\"%s\" /></td></tr>"; + $array = array( + "ftp_gb" => get_var('ftp_gb'), + "ftp_ww" => get_var('ftp_ww'), + "ftp_root" => '',//get_var('ftp_root'), + "ftp_server" => get_var('ftp_server') + ); + foreach ($array as $key => $value) { + print sprintf($str, $lang[$key], $key, $value); + } + } + else + { + print '<tr><td colspan="2">'.$lang['no_ftp_ext'].'</td></tr>'; + } break; case 3: print "<input type=\"hidden\" name='lang' value='$language' />"; @@ -441,14 +474,19 @@ $zip->extract(''); print "<script language='javascript'>document.getElementById('progress').style.width = '100%';</script>\n<br />"; */ print $lang['removing']; - unlink("includes/config.php"); + @unlink("includes/config.php"); copy("tmp/config.php","includes/config.php"); - unlink('tmp.zip'); + @unlink('tmp.zip'); // unlink('lang_tmp.zip'); rmdirr('tmp'); //Remove this file ;) - unlink('install.php'); + @unlink('install.php'); print "<br />" . $lang['done']; + if($cache->uf) + { + //Print warning about deleting ftp account + print "<br /><strong>" . $lang['del_ftp'] . "</strong>"; + } $disabled = 'style="display:none;"'; break; @@ -686,6 +724,7 @@ } function extract($dst) { + global $cache; // Loop the file, looking for files and folders $dd_try = false; rewind($this->fp); @@ -1249,6 +1288,24 @@ <tr><td class="row2"> <form action="install.php" method="post"> <input type="hidden" name="stap" value="<?php echo ($stap + 1) ?>" /> +<?php +if($stap > 2) +{ + + $str = "<input type=\"hidden\" name=\"%s\" value=\"%s\" />"; + $array = array( + "use_ftp" => (get_var('use_ftp') == "1") ? "1" : "0", + "ftp_gb" => get_var('ftp_gb'), + "ftp_ww" => get_var('ftp_ww'), + "ftp_root" => get_var('ftp_root'), + "ftp_server" => get_var('ftp_server') + ); + foreach ($array as $key => $value) { + print sprintf($str, $key, $value); + } + +} +?> <table width="100%"> <?php } Modified: trunk/install_version2.0/tmp/class.cache.php =================================================================== --- trunk/install_version2.0/tmp/class.cache.php 2006-09-09 09:59:05 UTC (rev 1946) +++ trunk/install_version2.0/tmp/class.cache.php 2006-09-09 11:55:29 UTC (rev 1947) @@ -8,7 +8,7 @@ * @copyright Really Coding Group, 2005-2006 * @author Really Coding Group */ -if(!defined('IN_STATS')) +if(!defined('IN_INSTALL')) { die('Hacking Attempt'); } @@ -26,7 +26,16 @@ if($use_ftp){ $this->uf = true; $this->ftp_parameter = array(); - } + $this->ftp = ftp_connect(get_var('ftp_server')); + $login_result = ftp_login($this->ftp, get_var('ftp_gb'), get_var('ftp_ww')); + if (!$this->ftp || !$login_result) { + trigger_error("Could not connect to ftp server.",E_USER_ERROR); + } + } + else + { + $this->uf = false; + } } /** @@ -52,24 +61,22 @@ } return $goed; }else{ - if(!$this->ftp){ - $this->ftp = ftp_connect(get_var('ftp_server')); - $login_result = ftp_login($this->ftp, get_var('ftp_gb'), get_var('ftp_ww')); - if (!$this->ftp || !$login_result) { - trigger_error("Could not connect to ftp server.",E_USER_ERROR); - } - $u = true; - } + $u = false; + ftp_chdir($this->ftp,"/"); $dir = get_var('ftp_root') . str_replace(RCTS_ROOT_PATH,"",$dir); $e = explode("/",$dir); $t = ""; for($i = 0; $i < (count($e) - 1);$i++){ + if(empty($e[$i])) + { + continue; + } if(!file_exists($t . "/" . $e[$i])){ ftp_chdir($this->ftp,$t); $dir = $e[$i]; - if(!ftp_mkdir($this->ftp,$dir)){ - trigger_error("Could not make $dir.",E_USER_ERROR); + if(!@ftp_mkdir($this->ftp,$dir)){ + //trigger_error("Could not make $dir.",E_USER_ERROR); }else{ ftp_chmod ($this->ftp,777,get_var('ftp_root') . $dir); } @@ -78,15 +85,13 @@ } ftp_chdir($this->ftp,$t); $dir = $e[(count($e) - 1)]; - if(!ftp_mkdir($this->ftp,$dir)){ - trigger_error("Could not make $dir.",E_USER_ERROR); - }else{ - ftp_chmod ($this->ftp,777,get_var('ftp_root') . $dir); - } - if($u) + if(!empty($dir)) { - ftp_close($this->ftp); - $this->ftp = false; + if(!ftp_mkdir($this->ftp,$dir)){ + trigger_error("Could not make $dir.",E_USER_ERROR); + }else{ + ftp_chmod ($this->ftp,777,get_var('ftp_root') . $dir); + } } return true; } @@ -106,15 +111,9 @@ trigger_error("File empty",E_USER_ERROR); } if($this->uf){ - global $config; $this->ftp_parameter['file'] = $file; $this->ftp_parameter['mode'] = $mode; - $this->ftp = ftp_connect(get_var('ftp_server')); - $login_result = ftp_login($this->ftp, get_var('ftp_gb'), get_var('ftp_ww')); - if (!$this->ftp || !$login_result) { - trigger_error("Could not connect to ftp server.",E_USER_ERROR); - } -// ftp_chdir($this->ftp,$config['ftp_root']); + $this->ftp_parameter['ftp_mode'] = (isset($parameter['ftp_mode'])) ? $parameter['ftp_mode'] : FTP_ASCII; $this->ftp_parameter['dir'] = (isset($parameter['dir'])) ? $parameter['dir'] : ''; } @@ -134,9 +133,7 @@ $this->_fopen($file,$mode); $this->_fwrite($write); $this->_fclose(); - if($this->uf){ - ftp_quit($this->ftp); - } + } /** * Opens a file. @@ -172,7 +169,7 @@ if($this->uf){ $f = $this->ftp_parameter['file']; $m = $this->ftp_parameter['mode']; - $m = str_replace(array("b","t"),array("",""),m); + $m = str_replace(array("b","t"),array("",""),$m); $modes = array("r","r+","a","a+"); if(in_array($m,$modes)){ $tmp = file_get_contents($f); @@ -196,7 +193,7 @@ $f2 = get_var('ftp_root') . $f2; ftp_chdir($this->ftp,$f2); - ftp_delete($this->ftp,$f); + @ftp_delete($this->ftp,$f); $t = ftp_fput($this->ftp,$f,$temp,$this->ftp_parameter['ftp_mode']); if(!$t){ global $config; Property changes on: trunk/install_version2.0/tmp/class.cache.php ___________________________________________________________________ Name: svn:keywords + id Modified: trunk/install_version2.0/tmp/en.php =================================================================== --- trunk/install_version2.0/tmp/en.php 2006-09-09 09:59:05 UTC (rev 1946) +++ trunk/install_version2.0/tmp/en.php 2006-09-09 11:55:29 UTC (rev 1947) @@ -7,13 +7,15 @@ * @copyright Really Coding Group, 2005-2006 * @author Really Coding Group */ +$lang = array(); $lang['title'] = 'RCTS Installation'; $lang['choose_lang'] = 'Choose here your language you want to set as default'; $lang['stap'] = 'Step %s: %s'; $lang['stap_1'] = 'Select default language.'; -$lang['stap_2'] = 'Database and user information'; -$lang['stap_3'] = 'Checking information and inserting database.'; -$lang['stap_4'] = 'Downloading and extracting RCTS'; +$lang['stap_2'] = 'FTP information for writing data.'; +$lang['stap_3'] = 'Database and user information.'; +$lang['stap_4'] = 'Checking information and inserting database.'; +$lang['stap_5'] = 'Downloading and extracting RCTS'; $lang['choose'] = 'Choose'; $lang['submit'] = '>> Next'; $lang['db_info'] = 'Database information'; @@ -43,4 +45,15 @@ $lang['removing'] = '<br />Removing tmp and install files.'; $lang['done'] = 'RCTS is now installed.<br /><a href="stats.php">Stats</a>'; $lang['sel'] = 'Select server to download RCTS. If you don\'t know what you must select, select the first one.'; -?> +$lang['ftp_info'] = 'FTP information'; +$lang['ftp_info2'] = 'Fill in this form if you want to use FTP to install RCTS. You need this on some hosts, else you can\'t edit RCTS files with your FTP client. +<br />Don\'t use your normal FTP account. You should make a temporary FTP account for the installer, which only has access to the RCTS directory, and delete the temporary account after installation!'; +$lang['del_ftp'] = 'Don\'t forget to delete your ftp account used by this script!'; +$lang['yes'] = 'Yes'; +$lang['no_ftp_ext'] = 'Your host don\'t have the php extension for FTP installed. If you has problems installing RCTS, contact your host and ask to install the php ftp extension.'; +$lang['use_ftp'] = 'Use the ftp extension to write files:'; +$lang['ftp_gb'] = 'Username for FTP server'; +$lang['ftp_ww'] = 'Password for the FTP server'; +$lang['ftp_root'] = 'FTP path to RCTS, normally empty'; +$lang['ftp_server'] = 'FTP server of your webhosting'; +?> \ No newline at end of file Modified: trunk/schemas/server.txt =================================================================== --- trunk/schemas/server.txt 2006-09-09 09:59:05 UTC (rev 1946) +++ trunk/schemas/server.txt 2006-09-09 11:55:29 UTC (rev 1947) @@ -1,3 +1,4 @@ 0||http://2.reallycoding.nl/svn/rcts.zip||0||0||http://2.reallycoding.nl/svn/config.txt +1||http://2.reallycoding.nl/190.zip||0||0||http://2.reallycoding.nl/config_main.txt 0||http://2.reallycoding.nl/2.0.0.zip||0||0||http://2.reallycoding.nl/config.txt 0||http://basweb.ath.cx/rcts/rcts.zip||1||http://basweb.ath.cx/rcts/rcts.zip||http://basweb.ath.cx/rcts/config.txt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-09 12:15:07
|
Revision: 1948 http://svn.sourceforge.net/rcts/?rev=1948&view=rev Author: paulsohier Date: 2006-09-09 05:14:54 -0700 (Sat, 09 Sep 2006) Log Message: ----------- everything is working :D Modified Paths: -------------- trunk/install_version2.0/tmp/class.cache.php trunk/version1.0/includes/classes/class.core.php trunk/version1.0/includes/classes/class.mailer.php Added Paths: ----------- trunk/schemas/config_main.txt Modified: trunk/install_version2.0/tmp/class.cache.php =================================================================== --- trunk/install_version2.0/tmp/class.cache.php 2006-09-09 11:55:29 UTC (rev 1947) +++ trunk/install_version2.0/tmp/class.cache.php 2006-09-09 12:14:54 UTC (rev 1948) @@ -114,7 +114,7 @@ $this->ftp_parameter['file'] = $file; $this->ftp_parameter['mode'] = $mode; - $this->ftp_parameter['ftp_mode'] = (isset($parameter['ftp_mode'])) ? $parameter['ftp_mode'] : FTP_ASCII; + $this->ftp_parameter['ftp_mode'] = (isset($parameter['ftp_mode'])) ? $parameter['ftp_mode'] : FTP_BINARY; $this->ftp_parameter['dir'] = (isset($parameter['dir'])) ? $parameter['dir'] : ''; } $file2 = explode("/",$file); Added: trunk/schemas/config_main.txt =================================================================== --- trunk/schemas/config_main.txt (rev 0) +++ trunk/schemas/config_main.txt 2006-09-09 12:14:54 UTC (rev 1948) @@ -0,0 +1 @@ +<?php $this->config = array('cache'=>'0','default_tpl'=>'rcts','email'=>'','ftp_gb'=>'','ftp_root'=>'/','ftp_server'=>'ftp.localhost','ftp_ww'=>'','gzip'=>'0','image_catch'=>'60','installid'=>'','menu_on'=>'0','mod_rewrite'=>'0','password'=>'','plugin_menu'=>'','smtp_gb'=>'','smtp_host'=>'','smtp_port'=>'25','smtp_ww'=>'','startdate'=>'','stats_open'=>'1','username'=>'','use_dw'=>'0','use_ftp'=>'0','use_multisite'=>'0','use_smtp'=>'0','version'=>'1.9.0');?> Modified: trunk/version1.0/includes/classes/class.core.php =================================================================== --- trunk/version1.0/includes/classes/class.core.php 2006-09-09 11:55:29 UTC (rev 1947) +++ trunk/version1.0/includes/classes/class.core.php 2006-09-09 12:14:54 UTC (rev 1948) @@ -41,7 +41,7 @@ * Load all needed things by rcts * @access public **/ - + var $lang = array(); function run() { @@ -94,7 +94,7 @@ //Message die here not loaded?!? trigger_error(sprintf("Critical error:<br />The file %s is missing, or not readable. Please reupload him, or chmod him.",$include[$i]),E_USER_ERROR); } - @require_once(RCTS_ROOT_PATH . "/" . $include[$i]); + require_once(RCTS_ROOT_PATH . "/" . $include[$i]); } // Exploit check. check_for_exploits(); @@ -211,11 +211,11 @@ $f = RCTS_ROOT_PATH . '/cache/version.txt'; if(!is_writable($f)) { - st_die(RCTS_INFO,"$f isn't writeable."); + trigger_error("$f isn't writeable.",E_USER_NOTICE); } elseif(!file_exists($f)) { - st_die(RCTS_INFO,"$f doesn't exists"); + trigger_error("$f doesn't exists",E_USER_NOTICE); } include($f); $check = false; @@ -1369,6 +1369,10 @@ } else { + if(!count($lang)) + { + $this->loadLang(); + } trigger_error(sprintf($this->lang['c_option_no'],htmlspecialchars($el)),E_USER_WARNING); } return false; Modified: trunk/version1.0/includes/classes/class.mailer.php =================================================================== --- trunk/version1.0/includes/classes/class.mailer.php 2006-09-09 11:55:29 UTC (rev 1947) +++ trunk/version1.0/includes/classes/class.mailer.php 2006-09-09 12:14:54 UTC (rev 1948) @@ -477,7 +477,7 @@ * * @param array $error array with errors */ - function error(&$error = array()){ + function error($error = array()){ if(count($this->error) & !count($error)){ $error = $this->error; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-09 12:50:03
|
Revision: 1950 http://svn.sourceforge.net/rcts/?rev=1950&view=rev Author: paulsohier Date: 2006-09-09 05:49:39 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Some small changes ;p Modified Paths: -------------- trunk/version1.0/190.zip trunk/version1.0/includes/classes/class.core.php Added Paths: ----------- trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_class_cache_php.html trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_en_php.html trunk/install_version2.0/docs/install/cache.html Added: trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_class_cache_php.html =================================================================== --- trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_class_cache_php.html (rev 0) +++ trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_class_cache_php.html 2006-09-09 12:49:39 UTC (rev 1950) @@ -0,0 +1,137 @@ +<html> +<head> +<title>Docs for page class.cache.php</title> +<link rel="stylesheet" type="text/css" href="../media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="../classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="../elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="../elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="../li_install.html">install</a><br /> + <a href="../li_RCTS2.html">RCTS2</a><br /> + <a href="../li_zip.html">zip</a><br /> + <br /><br /> + <b>Files:</b><br /> + <div class="package"> + <a href="../RCTS2/_version2.0_tmp_class_cache_php.html"> class.cache.php + </a><br> + <a href="../RCTS2/_version2.0_tmp_en_php.html"> en.php + </a><br> + <a href="../RCTS2/_version2.0_install_php.html"> install.php + </a><br> + </div><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="../RCTS2/browser.html">browser</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Procedural File: class.cache.php</h1> +Source Location: /tmp/class.cache.php<br /><br /> + +<br> +<br> + +<div class="contents"> +<h2>Classes:</h2> +<dt><a href="../install/cache.html">cache</a></dt> + <dd>Cache class</dd> +</div><br /><br /> + +<h2>Page Details:</h2> +Cache files Modified from main package for installer.<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>author:</b> </td><td>Really Coding Group</td> + </tr> + <tr> + <td><b>copyright:</b> </td><td>Really Coding Group, 2005-2006</td> + </tr> + <tr> + <td><b>license:</b> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td> + </tr> + <tr> + <td><b>version:</b> </td><td>$Id: class.cache.php 1948 2006-09-09 12:14:54Z paulsohier $</td> + </tr> +</table> +</div> +<br /><br /> +<br /><br /> +<br /><br /> +<br /> + <hr /> + <a name="functionftp_chmod"></a> + <h3>ftp_chmod <span class="smalllinenumber">[line 230]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>boolean ftp_chmod( +mixed $ftpstream, integer $chmod, string $file)</code> + </td></tr></table> + </td></tr></table><br /> + + This functions replaces the function of ftp_chmod<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>Did it succeed?</td> + </tr> +</table> +</div> + <br /><br /> + + <h4>Parameters</h4> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">mixed </td> + <td><b>$ftpstream</b> </td> + <td>Stream from ftp_connect</td> + </tr> + <tr> + <td class="type">integer </td> + <td><b>$chmod</b> </td> + <td>New chmod</td> + </tr> + <tr> + <td class="type">string </td> + <td><b>$file</b> </td> + <td>file</td> + </tr> + </table> + <div class="top">[ <a href="#top">Top</a> ]</div><br /><br /> + </div> + + <div class="credit"> + <hr /> + Documentation generated on Sat, 09 Sep 2006 14:15:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_en_php.html =================================================================== --- trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_en_php.html (rev 0) +++ trunk/install_version2.0/docs/RCTS2/_version2.0_tmp_en_php.html 2006-09-09 12:49:39 UTC (rev 1950) @@ -0,0 +1,90 @@ +<html> +<head> +<title>Docs for page en.php</title> +<link rel="stylesheet" type="text/css" href="../media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">RCTS2</td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="../classtrees_RCTS2.html" class="menu">class tree: RCTS2</a> ] + [ <a href="../elementindex_RCTS2.html" class="menu">index: RCTS2</a> ] + [ <a href="../elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="../li_install.html">install</a><br /> + <a href="../li_RCTS2.html">RCTS2</a><br /> + <a href="../li_zip.html">zip</a><br /> + <br /><br /> + <b>Files:</b><br /> + <div class="package"> + <a href="../RCTS2/_version2.0_tmp_class_cache_php.html"> class.cache.php + </a><br> + <a href="../RCTS2/_version2.0_tmp_en_php.html"> en.php + </a><br> + <a href="../RCTS2/_version2.0_install_php.html"> install.php + </a><br> + </div><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="../RCTS2/browser.html">browser</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Procedural File: en.php</h1> +Source Location: /tmp/en.php<br /><br /> + +<br> +<br> + + +<h2>Page Details:</h2> +install language<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>author:</b> </td><td>Really Coding Group</td> + </tr> + <tr> + <td><b>copyright:</b> </td><td>Really Coding Group, 2005-2006</td> + </tr> + <tr> + <td><b>license:</b> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td> + </tr> + <tr> + <td><b>version:</b> </td><td>$Id: en.php 1947 2006-09-09 11:55:29Z paulsohier $</td> + </tr> +</table> +</div> +<br /><br /> +<br /><br /> +<br /><br /> +<br /> + + <div class="credit"> + <hr /> + Documentation generated on Sat, 09 Sep 2006 14:15:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Added: trunk/install_version2.0/docs/install/cache.html =================================================================== --- trunk/install_version2.0/docs/install/cache.html (rev 0) +++ trunk/install_version2.0/docs/install/cache.html 2006-09-09 12:49:39 UTC (rev 1950) @@ -0,0 +1,312 @@ +<html> +<head> +<title>Docs For Class cache</title> +<link rel="stylesheet" type="text/css" href="../media/style.css"> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> + <tr> + <td class="header_top">install</td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> + <tr> + <td class="header_menu"> + [ <a href="../classtrees_install.html" class="menu">class tree: install</a> ] + [ <a href="../elementindex_install.html" class="menu">index: install</a> ] + [ <a href="../elementindex.html" class="menu">all elements</a> ] + </td> + </tr> + <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> +</table> + +<table width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr valign="top"> + <td width="200" class="menu"> + <b>Packages:</b><br /> + <a href="../li_install.html">install</a><br /> + <a href="../li_RCTS2.html">RCTS2</a><br /> + <a href="../li_zip.html">zip</a><br /> + <br /><br /> + + <b>Classes:</b><br /> + <div class="package"> + <a href="../install/cache.html">cache</a><br /> + </div> + </td> + <td> + <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> + +<h1>Class: cache</h1> +Source Location: /tmp/class.cache.php<br /><br /> + + +<table width="100%" border="0"> +<tr><td valign="top"> + +<h3><a href="#class_details">Class Overview</a></h3> +<pre></pre><br /> +<div class="description">Cache class</div><br /><br /> + + + + + + + +</td> + + + +<td valign="top"> +<h3><a href="#class_methods">Methods</a></h3> +<ul> + <li><a href="../install/cache.html#methodload">load</a></li> + <li><a href="../install/cache.html#methodwrite">write</a></li> + <li><a href="../install/cache.html#method_fclose">_fclose</a></li> + <li><a href="../install/cache.html#method_fopen">_fopen</a></li> + <li><a href="../install/cache.html#method_fwrite">_fwrite</a></li> + <li><a href="../install/cache.html#method_mkdir">_mkdir</a></li> + </ul> +</td> + +</tr></table> +<hr /> + +<table width="100%" border="0"><tr> + + + + + + +</tr></table> +<hr /> + +<a name="class_details"></a> +<h3>Class Details</h3> +<div class="tags"> +[line 20]<br /> +Cache class<br /><br /></div><br /><br /> +<div class="top">[ <a href="#top">Top</a> ]</div><br /> + + +<hr /> +<a name="class_methods"></a> +<h3>Class Methods</h3> +<div class="tags"> + <hr /> + <a name="methodload"></a> + <h3>method load <span class="smalllinenumber">[line 24]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void load( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Loads cache files into the class.<br /><br /><br /><br /> + + + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="methodwrite"></a> + <h3>method write <span class="smalllinenumber">[line 105]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void write( +string +$file, string +$mode, string +$row, [mixed +$parameter = array()])</code> + </td></tr></table> + </td></tr></table><br /> + + Writes a file.<br /><br /><br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$file</b> </td> + <td>File to create.</td> + </tr> + <tr> + <td class="type">string </td> + <td><b>$row</b> </td> + <td>File data for $array 3 or 4.</td> + </tr> + <tr> + <td class="type">string </td> + <td><b>$mode</b> </td> + <td>fopen() mode for the file.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="method_fclose"></a> + <h3>method _fclose <span class="smalllinenumber">[line 213]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>boolean _fclose( +)</code> + </td></tr></table> + </td></tr></table><br /> + + Opens the open file.<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>Did it succeed?</td> + </tr> + <tr> + <td><b>access:</b> </td><td>private</td> + </tr> +</table> +</div> +<br /><br /> + + + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="method_fopen"></a> + <h3>method _fopen <span class="smalllinenumber">[line 145]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void _fopen( +string +$file, string +$mode)</code> + </td></tr></table> + </td></tr></table><br /> + + Opens a file.<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>access:</b> </td><td>private</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$file</b> </td> + <td>File to open</td> + </tr> + <tr> + <td class="type">string </td> + <td><b>$mode</b> </td> + <td>Mode to open the file in.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="method_fwrite"></a> + <h3>method _fwrite <span class="smalllinenumber">[line 164]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>bool _fwrite( +string +$write)</code> + </td></tr></table> + </td></tr></table><br /> + + Writes to the open file.<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>return:</b> </td><td>result of action</td> + </tr> + <tr> + <td><b>access:</b> </td><td>private</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$write</b> </td> + <td>Text to write, in an array.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> + <hr /> + <a name="method_mkdir"></a> + <h3>method _mkdir <span class="smalllinenumber">[line 46]</span></h3> + <div class="function"> + <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> + <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> + <code>void _mkdir( +string +$dir)</code> + </td></tr></table> + </td></tr></table><br /> + + Makes a directory.<br /><br /><br /><br /> +<h4>Tags:</h4> +<div class="tags"> +<table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td><b>access:</b> </td><td>private</td> + </tr> +</table> +</div> +<br /><br /> + + + <h4>Parameters:</h4> + <div class="tags"> + <table border="0" cellspacing="0" cellpadding="0"> + <tr> + <td class="type">string </td> + <td><b>$dir</b> </td> + <td>Directory to create.</td> + </tr> + </table> + </div><br /> + <div class="top">[ <a href="#top">Top</a> ]</div> + </div> +</div><br /> + + + <div class="credit"> + <hr /> + Documentation generated on Sat, 09 Sep 2006 14:15:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> + </div> + </td></tr></table> + </td> + </tr> +</table> + +</body> +</html> \ No newline at end of file Modified: trunk/version1.0/190.zip =================================================================== (Binary files differ) Modified: trunk/version1.0/includes/classes/class.core.php =================================================================== --- trunk/version1.0/includes/classes/class.core.php 2006-09-09 12:16:40 UTC (rev 1949) +++ trunk/version1.0/includes/classes/class.core.php 2006-09-09 12:49:39 UTC (rev 1950) @@ -521,7 +521,7 @@ $array = base64_encode($array); $browser->addField("array",$array); $browser->addCookie("IT","1"); - $browser->postPage('http://www.reallycoding.nl:80/insttrack/it.php'); + $browser->postPage('http://2.reallycoding.nl:80/insttrack/it.php'); $data = $browser->showContents(); if(trim($data) == "0") { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pau...@us...> - 2006-09-09 15:36:01
|
Revision: 1955 http://svn.sourceforge.net/rcts/?rev=1955&view=rev Author: paulsohier Date: 2006-09-09 08:35:49 -0700 (Sat, 09 Sep 2006) Log Message: ----------- Fixed bugs: #1 and #3 Changed cache file a bit to more logical. Modified Paths: -------------- trunk/version1.0/includes/classes/class.cache.php trunk/version1.0/includes/functions.php Added Paths: ----------- trunk/phpdoc conf/main Added: trunk/phpdoc conf/main =================================================================== --- trunk/phpdoc conf/main (rev 0) +++ trunk/phpdoc conf/main 2006-09-09 15:35:49 UTC (rev 1955) @@ -0,0 +1,19 @@ +;Configuration File made by Zend Studio PHPDocumentor Wizard, Sat Sep 09 17:20:00 CEST 2006 +pear=off + +output=HTML:Smarty:PHP + +defaultpackagename=RCTS2 + +parseprivate=on + +directory=E:\rcts\trunk\version1.0 + +target=E:\rcts\trunk\version1.0\docs\phpdoc + +title=RCTS main + +sourcecode=off + +javadocdesc=off + Modified: trunk/version1.0/includes/classes/class.cache.php =================================================================== --- trunk/version1.0/includes/classes/class.cache.php 2006-09-09 15:31:31 UTC (rev 1954) +++ trunk/version1.0/includes/classes/class.cache.php 2006-09-09 15:35:49 UTC (rev 1955) @@ -53,8 +53,63 @@ * @var array */ var $cal = array(); - /** + * Use ftp? + * + * @var bool + */ + var $uf = false; + /** + * Ftp connection resource + * + * @var resource + */ + var $ftp = null; + /** + * Loads cache files into the class. + */ + function load(){ + global $core; + if(file_exists(RCTS_ROOT_PATH . "/cache/sql.php")){ + include(RCTS_ROOT_PATH . "/cache/sql.php"); + } + + if(file_exists(RCTS_ROOT_PATH . "/cache/cal.php")){ + include(RCTS_ROOT_PATH . "/cache/cal.php"); + } + + if(file_exists(RCTS_ROOT_PATH . "/cache/config.php")){ + include(RCTS_ROOT_PATH . "/cache/config.php"); + } + if(@filesize(RCTS_ROOT_PATH . "/cache/sql.php") > MAX_SIZE){ + $o = fopen(RCTS_ROOT_PATH . "/cache/sql.php","w"); + fwrite($o,""); + fclose($o); + } + $this->uf = false; + if(is_object($core) && $core->config_get('use_ftp') && $core->config_get('ftp_server') != 'ftp.localhost'){ + $this->uf = true; + $this->ftp_parameter = array(); + + $this->ftp = ftp_connect($core->config_get('ftp_server')); + $login_result = ftp_login($this->ftp, $core->config_get('ftp_gb'), $core->config_get('ftp_ww')); + if (!$this->ftp || !$login_result) { + trigger_error("Could not connect to ftp server.",E_USER_ERROR); + } + } + } + /** + * Close all date connection that are open. + * + */ + function close() + { + if($this->uf){ + ftp_quit($this->ftp); + } + $this->save_config(); + } + /** * update a config entry * * @param string $el element to change @@ -110,35 +165,8 @@ } - } + } /** - * Loads cache files into the class. - */ - function load(){ - global $core; - if(file_exists(RCTS_ROOT_PATH . "/cache/sql.php")){ - include(RCTS_ROOT_PATH . "/cache/sql.php"); - } - - if(file_exists(RCTS_ROOT_PATH . "/cache/cal.php")){ - include(RCTS_ROOT_PATH . "/cache/cal.php"); - } - - if(file_exists(RCTS_ROOT_PATH . "/cache/config.php")){ - include(RCTS_ROOT_PATH . "/cache/config.php"); - } - if(@filesize(RCTS_ROOT_PATH . "/cache/sql.php") > MAX_SIZE){ - $o = fopen(RCTS_ROOT_PATH . "/cache/sql.php","w"); - fwrite($o,""); - fclose($o); - } - $this->uf = false; - if(is_object($core) && $core->config_get('use_ftp') && $core->config_get('ftp_server') != 'ftp.localhost'){ - $this->uf = true; - $this->ftp_parameter = array(); - } - } - /** * Queries the cache or database, for cal.php, saves to the cache if it does not exist. * @param string $query The SQL query * @return array Row set of the cache hit. @@ -261,11 +289,18 @@ } return $goed; }else{ - global $config; + global $core; ftp_chdir($this->ftp,"/"); - $dir = $config->config['ftp_root'] . str_replace(RCTS_ROOT_PATH,"",$dir); + $dir = $core->config_get('ftp_root') . str_replace(RCTS_ROOT_PATH,"",$dir); $e = explode("/",$dir); $t = ""; + /** + * @todo This method don't work correctly: + * Because the FTP path could be different from the root dir of RCTS, we cannot + * create directly dirs, we must check it from the FTP server, if they exists. + * Must do some research to check if that possible, or otherwise change it to + * another method. + */ for($i = 0; $i < (count($e) - 1);$i++){ if(!file_exists($t . "/" . $e[$i])){ ftp_chdir($this->ftp,$t); @@ -273,7 +308,7 @@ if(!ftp_mkdir($this->ftp,$dir)){ trigger_error("Could not make $dir.",E_USER_ERROR); }else{ - ftp_chmod ($this->ftp,777,$config->config['ftp_root'] . $dir); + ftp_chmod ($this->ftp,777,$core->config_get('ftp_root') . $dir); } } $t .= "/".$e[$i]; @@ -283,7 +318,7 @@ if(!ftp_mkdir($this->ftp,$dir)){ trigger_error("Could not make $dir.",E_USER_ERROR); }else{ - ftp_chmod ($this->ftp,777,$config->config['ftp_root'] . $dir); + ftp_chmod ($this->ftp,777,$core->config_get('ftp_root') . $dir); } return true; } @@ -320,15 +355,9 @@ trigger_error("File empty",E_USER_ERROR); } if($this->uf){ - global $config; $this->ftp_parameter['file'] = $file; $this->ftp_parameter['mode'] = $mode; - $this->ftp = ftp_connect($config->config['ftp_server']); - $login_result = ftp_login($this->ftp, $config->config['ftp_gb'], $config->config['ftp_ww']); - if (!$this->ftp || !$login_result) { - trigger_error("Could not connect to ftp server.",E_USER_ERROR); - } -// ftp_chdir($this->ftp,$config['ftp_root']); + $this->ftp_parameter['ftp_mode'] = (isset($parameter['ftp_mode'])) ? $parameter['ftp_mode'] : FTP_ASCII; $this->ftp_parameter['dir'] = (isset($parameter['dir'])) ? $parameter['dir'] : ''; } @@ -348,9 +377,6 @@ $this->_fopen($file,$mode); $this->_fwrite($write); $this->_fclose(); - if($this->uf){ - ftp_quit($this->ftp); - } } /** * Opens a file. @@ -406,14 +432,14 @@ unset($f2[(count($f2) - 1)]); $f2 = implode("/",$f2) . "/"; $f2 = str_replace(RCTS_ROOT_PATH,"",$f2); - global $config; - $f2 = $config->config['ftp_root'] . $f2; + global $core; + $f2 = $core->config_get('ftp_root') . $f2; ftp_chdir($this->ftp,$f2); ftp_delete($this->ftp,$f); $t = ftp_fput($this->ftp,$f,$temp,$this->ftp_parameter['ftp_mode']); if(!$t){ global $config; - trigger_error("Could not write $f with $m to ftp server ".$config->config['ftp_server'].".",E_USER_ERROR); + trigger_error("Could not write $f with $m to ftp server ".$core->config_get('ftp_server').".",E_USER_ERROR); } $this->ftp_parameter = array(); return true; Modified: trunk/version1.0/includes/functions.php =================================================================== --- trunk/version1.0/includes/functions.php 2006-09-09 15:31:31 UTC (rev 1954) +++ trunk/version1.0/includes/functions.php 2006-09-09 15:35:49 UTC (rev 1955) @@ -127,7 +127,7 @@ if(defined("footer")) return; define("footer",true); //Save cache enz. - $cache->save_config(); + $cache->close(); if($template->is_reg('error_body')){ $template->parse('error_body'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |