You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(32) |
Sep
|
Oct
|
Nov
(100) |
Dec
(22) |
---|
From: <jhe...@us...> - 2002-08-05 07:59:11
|
Update of /cvsroot/upcase-project/UpCase/config In directory usw-pr-cvs1:/tmp/cvs-serv24178 Removed Files: Mxconf.php Log Message: Now, it is generated by install script --- Mxconf.php DELETED --- |
From: <jhe...@us...> - 2002-08-05 07:58:09
|
Update of /cvsroot/upcase-project/UpCase/config In directory usw-pr-cvs1:/tmp/cvs-serv23968 Modified Files: uc_templates.inc Log Message: fixed include path, added some templates Index: uc_templates.inc =================================================================== RCS file: /cvsroot/upcase-project/UpCase/config/uc_templates.inc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** uc_templates.inc 16 Jul 2002 15:32:14 -0000 1.1.1.1 --- uc_templates.inc 5 Aug 2002 07:58:05 -0000 1.2 *************** *** 1,16 **** <?php ! include_once("config/uc_config.inc"); include_once("lib/ModeliXe.php"); if (!isset($uc_lang)) { ! $uc_lang = $uc_config["defaultlang"]; } $uc_tmpl["PACKAGES_LIST"] = $uc_lang . "/packages.mxt"; $uc_tmpl["PACKAGES_INSTALL"] = $uc_lang . "/install.mxt"; $uc_tmpl["LOGIN_PAGE"] = $uc_lang . "/login.mxt"; $uc_tmpl["USERS_LIST"] = $uc_lang . "/userslist.mxt"; $uc_tmpl["USER_EDIT"] = $uc_lang . "/useredit.mxt"; $uc_tmpl["USER_INFO"] = $uc_lang . "/userinfo.mxt"; $uc_tmpl["MAIN_INDEX"] = $uc_lang . "/mainindex.mxt"; --- 1,19 ---- <?php ! include_once("uc_config.inc"); include_once("lib/ModeliXe.php"); if (!isset($uc_lang)) { ! $uc_lang = $ucConfig->defaultLang; } + $uc_tmpl["UC_INSTALL"] = $uc_lang . "/install.mxt"; $uc_tmpl["PACKAGES_LIST"] = $uc_lang . "/packages.mxt"; $uc_tmpl["PACKAGES_INSTALL"] = $uc_lang . "/install.mxt"; + $uc_tmpl["ADMIN_MENU"] = $uc_lang . "/adminmenu.mxt"; $uc_tmpl["LOGIN_PAGE"] = $uc_lang . "/login.mxt"; $uc_tmpl["USERS_LIST"] = $uc_lang . "/userslist.mxt"; $uc_tmpl["USER_EDIT"] = $uc_lang . "/useredit.mxt"; + $uc_tmpl["NEW_USER"] = $uc_lang . "/newuser.mxt"; $uc_tmpl["USER_INFO"] = $uc_lang . "/userinfo.mxt"; $uc_tmpl["MAIN_INDEX"] = $uc_lang . "/mainindex.mxt"; |
From: <jhe...@us...> - 2002-08-05 07:49:24
|
Update of /cvsroot/upcase-project/UpCase/config In directory usw-pr-cvs1:/tmp/cvs-serv22067 Removed Files: uc_cfgparser.php Log Message: Replaced by a more generic one (see uc_xmlparser.php) --- uc_cfgparser.php DELETED --- |
From: <jhe...@us...> - 2002-08-05 07:47:31
|
Update of /cvsroot/upcase-project/UpCase In directory usw-pr-cvs1:/tmp/cvs-serv21529 Added Files: install.php Log Message: Ask for info about the database, create the xml config file, the upcase config file, and ModeliXe config file. --- NEW FILE: install.php --- <?php include_once("./config/uc_tables.inc"); include_once("./lib/adodb/adodb.inc.php"); // Check if we have all we need to access the database // else display a from to get the info. if (!isset($dbname) || $dbname == "" || !isset($dbuser) || $dbuser == "" || !isset($dbpasswd) || $dbpasswd == "" || !isset($dbhost) || $dbhost == "" || !isset($tblprefix) || $tblprefix == "") { ?> <form> <table> <tr> <td>Database Name : </td><td><input type="text" name="dbname"></td> </tr> <tr> <td>Database User : </td><td><input type="text" name="dbuser"></td> </tr> <tr> <td>Database Password : </td><td><input type="text" name="dbpasswd"></td> </tr> <tr> <td>Database Host : </td><td><input type="text" name="dbhost"></td> </tr> <tr> <td>Tables prefix : </td><td><input type="text" name="tblprefix"></td> </tr> <tr> <td colspan="2"><input type="submit"></td> </tr> </table> </form> <? exit(); } // Try to create our tables $db = NewADOConnection("mysql"); if (!$db->Connect($dbhost, $dbuser, $dbpasswd, $dbname)) { die("Unable to connect to database !"); } // Execute each query one by one foreach ($tables_create as $query) { $res = $db->Execute($query); if (!$res) { die($db->ErrorMsg()); } } foreach ($tables_insert as $query) { $res = $db->Execute($query); if (!$res) { die($db->ErrorMsg()); } } $docroot = dirname($DOCUMENT_ROOT . $PHP_SELF); $modules = $docroot . "/modules"; $rooturl = $HTTP_HOST . "/UpCase"; $modsurl = $rooturl . "/modules"; // Create the config file $xmlConfig =<<< _EOF_ <?xml version="1.0"?> <upcase> <!-- Path in local filesystem and url --> <paths> <docroot>$docroot</docroot> <modules>$modules</modules> <rooturl>http://$rooturl</rooturl> <modsurl>http://$modsurl</modsurl> </paths> <!-- Database connection data --> <database> <engine>MySQL</engine> <name>$dbname</name> <host>$dbhost</host> <user>$dbuser</user> <password>$dbpasswd</password> <prefix>$tblprefix</prefix> <table data="sessions">sessions</table> <table data="users">users</table> </database> <!-- Available languages --> <languages> <defaultlang>en</defaultlang> <lang id="fr">Français</lang> <lang id="nl">Nederlands</lang> <lang id="en">English</lang> </languages> <!-- Session data --> <sessions> <session_timeout>3600</session_timeout> </sessions> </upcase> _EOF_; // Write it to disk $fd = fopen($docroot . "/config/upcase.xml", "w"); fwrite($fd, $xmlConfig); fclose($fd); $ucConfig = '<?php ini_set("include_path", ".:' . $docroot . ':' . $docroot . '/config"); include_once("lib/uc_config.php"); $xmlConf = "' . $docroot . '/config/upcase.xml"; $ucConfig = new UcConfig($xmlConf); // ModeliXe config define("MX_GENERAL_PATH", $ucConfig->filesRoot . "config/"); define("MX_ERROR_PATH", $ucConfig->filesRoot . "lib/"); // translation files $uc_translations["object_descriptions"] = $ucConfig->filesRoot . "/templates/objdescr.xml"; // Message pages $msgdir = $ucConfig->wwwRoot . "/admin/messages"; $uc_info["objectRegistered"] = $msgdir . "/newobject.php"; $uc_info["badLoginMsg"] = $msgdir . "/badlogin.php"; $uc_info["accessDenied"] = $msgdir . "/accessdenied.php"; $uc_info["adminsOnly"] = $msgdir . "/adminsonly.php"; $uc_info["sessionSteal"] = $msgdir . "/sessionsteal.php"; ?>'; // Write it to disk $fd = fopen($docroot . "/config/uc_config.inc", "w"); fwrite($fd, $ucConfig); fclose($fd); $mxConf = '<?php //Configuration générale de ModeliXe define(\'MX_FLAGS_TYPE\', \'xml\'); //Précise le mode d\'écriture des templates par défaut (xml ou pear). define(\'MX_OUTPUT_TYPE\', \'xhtml\'); //Précise le type de balisage en sortie. define(\'MX_TEMPLATE_PATH\', \'' . $docroot . '/templates\'); //Précise le répertoire de template par défaut. define(\'MX_DEFAULT_PARAMETER\', \'\'); //Précise un fichier de paramètres par défaut. define(\'MX_CACHE_PATH\', \'' . $docroot . '/cache\'); //Précise le répertoire du cache. define(\'MX_CACHE_DELAY\', 0); //Définit le délai de renouvellement du cache en secondes. define(\'MX_SIGNATURE\', \'off\'); //Laisse la signature de ModeliXe dans la page HTML générée (on ou off). define(\'MX_COMPRESS\', \'off\'); //Mets en oeuvre la compression des pages si le navigateur le supporte (on ou off). define(\'MX_REWRITEURL\', \'off\'); //Uitilise le mode_rewrite pour créer les urls (on ou off). define(\'MX_PERFORMANCE_TRACER\', \'on\'); //Précise si on désire mettre en oeuvre le chronométrage des performances (on ou off). //Configuration de la gestion des erreurs define(\'ERROR_MANAGER_SYSTEM\', \'on\'); //Les erreurs sont remontées pour on, ignorées pour off. define(\'ERROR_MANAGER_LEVEL\', \'3\'); //Précise le niveau d\'erreur toléré, plus il est bas, moins les erreurs sont tolérées. define(\'ERROR_MANAGER_ESCAPE\', \'html/erreur.html\'); //Permet de spécifier une url locale de remplacement en cas de remontée d\'erreurs. define(\'ERROR_MANAGER_LOG\', \'data/erreur.txt\'); //Permet de définir un fichier de log. define(\'ERROR_MANAGER_ALARME\', \'mod...@ph...\'); //Permet de définir une série d\'adresse email à laquelle sera envoyé un mail d\'alerte. ?>'; // Write it to disk $fd = fopen($docroot . "/config/Mxconf.php", "w"); fwrite($fd, $mxConf); fclose($fd); print("Configuration done<br>"); ?> |
From: <jhe...@us...> - 2002-07-29 11:05:02
|
Update of /cvsroot/upcase-project/UpCase/lib In directory usw-pr-cvs1:/tmp/cvs-serv16711 Added Files: uc_xmlparser.php Log Message: Simple generic xml parser that output a "tree" from a xml file. --- NEW FILE: uc_xmlparser.php --- <?php class Node { /** * Child nodes * * @var array */ var $childNodes; /** * Count of child nodes * * @var int */ var $childCount; /** * Text child elements * * @var array */ var $textElements; /** * XML attributes * * @var array */ var $attributes; /** * Tag name * * @var string */ var $tag; /** * Create a new node object * * @param string $tag tagname of the node * @param array $attributes xml attributes to assign to this node */ function Node($tag, $attributes = 0) { $this->tag = $tag; if ($attributes) $this->attributes = $attributes; $this->childNodes = array(); $this->childCount = 0; $this->textElements = array(); } /** * Add a node to the list of child nodes and increment the child nodei * counter. * * @param object $node The child node object */ function appendChild($node) { $this->childNodes[$this->childCount] = $node; $this->childCount ++; } /** * Add a string of data text to text elements list * * @param string $data text data */ function appendData($data) { $this->textElements[] = $data; } /** * Get the last child node * * @return object reference to the last child node */ function &lastChild() { return $this->childNodes[$this->childCount - 1]; } /** * retrieve an array of child nodes by tagname * * @param string $tag the tagname of child elements * @return array List of all nodes below this one with tagname */ function getElements($tag) { $ret = array(); foreach ($this->childNodes as $child) { if ($child->tag == $tag) $ret[] = $child; if ($child->childCount > 0) $ret = array_merge($ret, $child->getElements($tag)); } return $ret; } } /** * Very basic and limited XML parser. * * This parser will read a XML file and return a structure like this * * object Node ( * [childNodes] => array ( * [0] => object Node ( ... * [1] => object Node ( ... * ) * [childCount] => 2 * [textElements] => array ( * [0] => "blah blah ..." * [1] => "blah blah blah ..." * ) * [attributes] => array ( [attrib1] => "blah" * [attrib2] => "blahblah" * ) * [tag] => "root" * ) * * Then : * * $node->childNodes is the list of all direct childs of this node * $node->childCount is the number of direct childs under this node * $node->tag is the tag name of this node * $node->attributes is the list of xml attributes of this node * $node->textElements is the list of all textual data in this node * */ class UcXmlParser { var $parser; var $inComment; var $domTree; var $stack; var $stackTop; function UcXmlParser() { $this->parser = xml_parser_create(); xml_set_object($this->parser, &$this); xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1); xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); xml_set_default_handler($this->parser, "defaultHandler"); xml_set_element_handler($this->parser, "openTag", "closeTag"); } function parse($xmlFile) { $this->inComment = false; $data = implode("", file($xmlFile)); $this->domTree = new Node("root"); $this->stack = array(); $this->stackTop = 0; $this->stack[$this->stackTop] =& $this->domTree; xml_parse($this->parser, $data, true); return $this->domTree; } function openTag($parser, $tag, $attributes) { // Open a tag, create a new node $node = new Node($tag, $attributes); // and append it to the current one $this->stack[$this->stackTop]->appendChild($node); // Then put it on top of the stack $this->stack[$this->stackTop + 1] =& $this->stack[$this->stackTop]->lastChild(); $this->stackTop ++; } function closeTag($parser, $tag) { // Closing a node, ddecrease stack top, so current node is the // parent of the one we just closed $this->stackTop--; } function defaultHandler($parser, $xmlData) { $data = trim($xmlData); // Don't need this if ($data == "<?xml version=\"1.0\"?>" || $data == "") return; // Nor that ... if (strpos($data, "<!--") !== false && !$this->inComment) { if (strpos($data, "-->") !== false) return; $this->inComment = true; return; } if (strpos($data, "-->") !== false && $this->inComment) { $this->inComment = false; return; } // This is a text element, then append it to the data of the // current node if (!$this->inComment) $this->stack[$this->stackTop]->appendData($data); } } ?> |
From: <jhe...@us...> - 2002-07-29 10:46:02
|
Update of /cvsroot/upcase-project/UpCase/lib In directory usw-pr-cvs1:/tmp/cvs-serv11812 Removed Files: uc_ftp.php Log Message: Don't need it anymore since I use Tar from php PEAR library to unpack archive on the server. --- uc_ftp.php DELETED --- |
From: <jhe...@us...> - 2002-07-17 10:58:30
|
Update of /cvsroot/upcase-project/UpCase/lib In directory usw-pr-cvs1:/tmp/cvs-serv20249 Modified Files: uc_accounts.php Log Message: added a little comment to test syncmail Index: uc_accounts.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_accounts.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** uc_accounts.php 16 Jul 2002 15:31:56 -0000 1.1.1.1 --- uc_accounts.php 17 Jul 2002 10:58:25 -0000 1.2 *************** *** 17,20 **** --- 17,21 ---- } + // Fill a user object with data retrieved from the database function getUser($username, $uid) { |