mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
New default template - User side
git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user