Changeset 1719
- Timestamp:
- Jan 13, 2007, 4:13:40 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r1717 r1719 529 529 ('.implode(',', $dbfields).') 530 530 VALUES'; 531 foreach ($datas as $insert_id => $insert) 531 $first = 1; 532 foreach ($datas as $insert) 532 533 { 533 534 $query.= ' 534 535 '; 535 if ($insert_id > 0) 536 if ($first) 537 { 538 $first = 0; 539 } 540 else 536 541 { 537 542 $query.= ','; … … 1891 1896 global $conf, $header_notes; 1892 1897 $count = 0; 1893 1898 1894 1899 if (($conf['show_exif']) and (!function_exists('read_exif_data'))) 1895 1900 { -
trunk/include/category_cats.inc.php
r1677 r1719 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) … … 38 38 SELECT 39 39 id,name, representative_picture_id, comment, nb_images, uppercats, 40 date_last, max_date_last, count_images, count_categories 40 date_last, max_date_last, count_images, count_categories, global_rank 41 41 FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' 42 42 ON id = cat_id and user_id = '.$user['id'].' … … 152 152 } 153 153 154 if ($page['section']=='recent_cats') 155 { 156 usort($categories, 'global_rank_compare'); 157 } 154 158 if (count($categories) > 0) 155 159 { -
trunk/include/page_header.php
r1703 r1719 63 63 64 64 // Header notes 65 if ( count($header_notes) >0)65 if ( isset($header_notes) and count($header_notes)>0) 66 66 { 67 67 foreach ($header_notes as $header_note) -
trunk/include/template.php
r1589 r1719 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 5PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 294 294 { 295 295 $this->_tpldata['.'][0][$varname] = $varval; 296 297 return true; 298 } 299 296 return true; 297 } 298 299 /** 300 * Root-level variable concatenation. Appends a string to an existing 301 * variable assignment with the same name. 302 */ 303 function concat_var($varname, $varval) 304 { 305 if ( isset($this->_tpldata['.'][0][$varname]) ) 306 { 307 $this->_tpldata['.'][0][$varname] .= $varval; 308 } 309 else 310 { 311 $this->_tpldata['.'][0][$varname] = $varval; 312 } 313 return true; 314 } 315 316 /** 317 * Returns a root-level variable value 318 */ 319 function get_var($varname, $default=null) 320 { 321 if ( isset($this->_tpldata['.'][0][$varname]) ) 322 { 323 return $this->_tpldata['.'][0][$varname]; 324 } 325 return $default; 326 } 300 327 301 328 /** -
trunk/profile.php
r1620 r1719 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 5PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | branch : BSF (Best So Far) 8 // | file : $ RCSfile$8 // | file : $Id$ 9 9 // | last update : $Date$ 10 10 // | last modifier : $Author$ … … 39 39 check_status(ACCESS_CLASSIC); 40 40 41 if ($user['is_the_guest'] and !$guest_allowed)42 {43 echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';44 echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';45 exit();46 }47 48 41 $userdata = $user; 49 42 -
trunk/template/yoga/default-layout.css
r1708 r1719 234 234 235 235 UL.tagSelection { 236 width: 40em;236 width: 99%; 237 237 margin: 1em 0 1em 0; 238 238 padding: 0;
Note: See TracChangeset
for help on using the changeset viewer.