New default template - User side

git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-02-26 18:33:45 +00:00
parent 29a07c00d0
commit 9e993f2d21
23 changed files with 375 additions and 456 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ if( !defined("PHPWG_INSTALLED") )
exit;
}
define( 'PREFIX_INCLUDE', '' );// en attendant la migration complète
include(PHPWG_ROOT_PATH . 'include/constants.php');
include(PHPWG_ROOT_PATH . 'include/config.inc.php');
include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
-6
View File
@@ -25,8 +25,6 @@
// | USA. |
// +-----------------------------------------------------------------------+
define( 'PREFIX_INCLUDE', '' );
// Debug Level
define('DEBUG', 1); // Debugging on
//define('DEBUG', 0); // Debugging off
@@ -37,10 +35,6 @@ define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
// xml tags
define( 'ATT_REG', '\w+' );
define( 'VAL_REG', '[^"]*' );
// Table names
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('COMMENTS_TABLE', $table_prefix.'comments');
+5 -5
View File
@@ -24,11 +24,11 @@
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
include( PREFIX_INCLUDE.'./include/functions_user.inc.php' );
include( PREFIX_INCLUDE.'./include/functions_session.inc.php' );
include( PREFIX_INCLUDE.'./include/functions_category.inc.php' );
include( PREFIX_INCLUDE.'./include/functions_xml.inc.php' );
include( PREFIX_INCLUDE.'./include/functions_group.inc.php' );
include( PHPWG_ROOT_PATH .'include/functions_user.inc.php' );
include( PHPWG_ROOT_PATH .'include/functions_session.inc.php' );
include( PHPWG_ROOT_PATH .'include/functions_category.inc.php' );
include( PHPWG_ROOT_PATH .'include/functions_xml.inc.php' );
include( PHPWG_ROOT_PATH .'include/functions_group.inc.php' );
//----------------------------------------------------------- generic functions
+4
View File
@@ -24,6 +24,10 @@
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
// xml tags
define( 'ATT_REG', '\w+' );
define( 'VAL_REG', '[^"]*' );
//------------------------------------------------------------------- functions
// getContent returns the content of a tag
//
+11 -6
View File
@@ -31,12 +31,17 @@ $template->set_filenames(array('tail'=>'footer.tpl'));
$time = get_elapsed_time( $t2, get_moment() );
$template->assign_vars(array(
'L_GEN_TIME' => $lang['generation_time'],
'S_TIME' => $time,
'S_VERSION' => $conf['version'],
'U_SITE' => add_session_id( $conf['site_url'] )
)
);
'TIME' => $time,
'VERSION' => $conf['version'],
'WEBMASTER'=>$conf['webmaster'],
'MAIL'=>$conf['mail_webmaster'],
'L_GEN_TIME' => $lang['generation_time'],
'L_SEND_MAIL' => $lang['send_mail'],
'L_TITLE_MAIL' => $lang['title_send_mail'],
'U_SITE' => add_session_id( $conf['site_url'] )
));
if (DEBUG)
{
+1 -1
View File
@@ -129,6 +129,6 @@ if ($user['status'] == 'admin') $isadmin =true;
// calculation of the number of picture to display per page
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
init_userprefs($user);
$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded..gif';
$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
?>