[ghelda-devel] [4] Cosmetic changes |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/ghelda-devel Archives
]
Revision: 4
Author: odyx
Date: 2008-11-26 09:33:36 +0100 (Wed, 26 Nov 2008)
Log Message:
-----------
Cosmetic changes
index.php Re-order the page
g_Auth.php Nothing
People.php comments
Modified Paths:
--------------
trunk/inc/g_Auth.php
trunk/index.php
trunk/plugins/People.php
Modified: trunk/inc/g_Auth.php
===================================================================
--- trunk/inc/g_Auth.php 2008-11-25 22:50:07 UTC (rev 3)
+++ trunk/inc/g_Auth.php 2008-11-26 08:33:36 UTC (rev 4)
@@ -65,12 +65,12 @@
{
if($this->getAuth()) {
$query = sprintf("UPDATE `%s` SET `%s` = '%s' WHERE `%s` = '%s'",
- $this->storage_options['table'],
- $varName,
- $varContent,
- $this->storage_options['usernamecol'],
- $this->getUsername()
- );
+ $this->storage_options['table'],
+ $varName,
+ $varContent,
+ $this->storage_options['usernamecol'],
+ $this->getUsername()
+ );
$queryR =& $this->db->query($query);
return !PEAR::isError($queryR);
} else {
Modified: trunk/index.php
===================================================================
--- trunk/index.php 2008-11-25 22:50:07 UTC (rev 3)
+++ trunk/index.php 2008-11-26 08:33:36 UTC (rev 4)
@@ -33,7 +33,6 @@
trigger_error(' >>>> START', G_E_LOG);
-
// Load the configuration
require_once "init/config.php"; // Gives $g_Config
@@ -62,18 +61,20 @@
$g_H_Output->top_header();
-$g_H_Output->login_box();
-
-$g_H_Output->languages_box();
-
// Body
if($g_H_Auth->getAuth()) {
$g_H_Plugins->menu();
+
$g_H_Plugin->main();
}
$g_H_Output->error_box($g_H_DisplayLogger->get_messages());
+$g_H_Output->login_box();
+
+$g_H_Output->languages_box();
+
$g_H_Output->stats($g_timeStart);
trigger_error(' <<<< END [ '.$g_H_Auth->getUsername().' ]'."\n", G_E_LOG);
-?>
\ No newline at end of file
+// trigger_error('Included files :'.var_export(get_included_files(),true),G_E_LOG);
+?>
Modified: trunk/plugins/People.php
===================================================================
--- trunk/plugins/People.php 2008-11-25 22:50:07 UTC (rev 3)
+++ trunk/plugins/People.php 2008-11-26 08:33:36 UTC (rev 4)
@@ -50,11 +50,12 @@
function main()
{ $this->startTrad();
- // Should allow editing, viewing, listing and exporting
+ // Take the mode from the URL or take the default mode
$this->mode = array_key_exists(G_MEM_URL_MODE,$this->url->querystring) ? $this->url->querystring[G_MEM_URL_MODE] : G_MEM_DEFAULT_MODE;
+ // If the mode is not know, trigger an error
if(array_search($this->mode,$this->modes) === false) {
- trigger_error(T_('Intrusion tentative detected: ').T_("Don't try to use undefined mode names!"), E_USER_ERROR);
+ trigger_error(T_('Intrusion tentative detected: ').T_("Don't try to use undefined mode names!"), G_E_LOG);
return false;
}
@@ -79,10 +80,10 @@
$id = is_null($id)? $this->authH->getId() : $id;
switch($this->mode) {
- case 'edit': $this->m_edit($id,$this->fieldsAll); break;
- case 'edit_base': $this->m_edit($id,$this->fieldsCore,true); break;
- case 'list': $this->m_list(); break;
- case 'new': $this->m_edit(G_MEM_ID_NEW,$this->fieldsAll); break;
+ case 'edit': $this->m_edit($id,$this->fieldsAll); break;
+ case 'edit_base': $this->m_edit($id,$this->fieldsCore,true); break;
+ case 'list': $this->m_list(); break;
+ case 'new': $this->m_edit(G_MEM_ID_NEW,$this->fieldsAll); break;
case 'del': $this->m_del($this->url->querystring[G_DB_PEOPLE_ID]); break;
}
}