Changeset 1092
- Timestamp:
- Mar 22, 2006, 2:01:47 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r1084 r1092 29 29 * Management of elements set. Elements can belong to a category or to the 30 30 * user caddie. 31 * 31 * 32 32 */ 33 33 34 34 if (!defined('PHPWG_ROOT_PATH')) 35 35 { … … 59 59 return array(); 60 60 } 61 61 62 62 $keywords = array(); 63 63 64 64 $query = ' 65 65 SELECT keywords … … 85 85 { 86 86 $collection = array(); 87 87 88 88 // echo '<pre>'; 89 89 // print_r($_POST); … … 137 137 ); 138 138 } 139 139 140 140 mass_inserts( 141 141 IMAGE_CATEGORY_TABLE, … … 171 171 $destinations_of[ $_POST['dissociate'] ] 172 172 ); 173 173 174 174 // Eventually, deletion of associations 175 175 $query = ' … … 186 186 // B. Who said "complicated"? 187 187 check_links(); 188 188 189 189 update_category($associated_categories); 190 190 } … … 206 206 } 207 207 } 208 208 209 209 // updating elements is useful only if needed... 210 210 if (count($dbfields['update']) > 0 and count($collection) > 0) … … 221 221 $data = array(); 222 222 $data['id'] = $row['id']; 223 223 224 224 if (!empty($_POST['add_keywords'])) 225 225 { … … 242 242 $data['keywords'] = empty($row['keywords']) ? '' : $row['keywords']; 243 243 } 244 244 245 245 $data['keywords'] = 246 246 implode( … … 288 288 ; 289 289 } 290 290 291 291 array_push($datas, $data); 292 292 } … … 309 309 array( 310 310 'CATEGORIES_NAV'=>$page['title'], 311 311 312 312 'L_SUBMIT'=>$lang['submit'], 313 313 314 314 'U_COLS'=>$base_url.get_query_string_diff(array('cols')), 315 315 'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 316 316 317 317 'U_UNIT_MODE' 318 318 => … … 320 320 .get_query_string_diff(array('mode','display')) 321 321 .'&mode=unit', 322 322 323 323 'F_ACTION'=>$base_url.get_query_string_diff(array()), 324 324 ) … … 380 380 AND ic.category_id = c.id 381 381 AND ic.image_id = i.id 382 AND ic. category_id != i.storage_category_id382 AND ic.is_storage = \'false\' 383 383 ;'; 384 384 display_select_cat_wrapper($query, array(), $blockname, true); … … 485 485 { 486 486 $src = get_thumbnail_src($row['path'], @$row['tn_ext']); 487 487 488 488 $template->assign_block_vars( 489 489 'thumbnails.line.thumbnail', … … 495 495 ) 496 496 ); 497 497 498 498 // create a new line ? 499 499 if (++$row_number == $page['cols']) -
trunk/admin/picture_modify.php
r1085 r1092 128 128 { 129 129 $datas = array(); 130 130 131 131 foreach ($_POST['cat_dissociated'] as $category_id) 132 132 { … … 139 139 ); 140 140 } 141 141 142 142 mass_inserts( 143 143 IMAGE_CATEGORY_TABLE, … … 167 167 ); 168 168 } 169 169 170 170 $query = ' 171 171 DELETE FROM '.IMAGE_CATEGORY_TABLE.' … … 214 214 215 215 $storage_category_id = $row['category_id']; 216 $image_file = $row['file']; 216 217 217 218 // Navigation path … … 237 238 (isset($_GET['cat_id']) ? '&cat_id='.$_GET['cat_id'] : ''). 238 239 '&sync_metadata=1', 239 240 240 241 'PATH'=>$row['path'], 241 242 242 243 'TN_SRC' => get_thumbnail_src($row['path'], @$row['tn_ext']), 243 244 244 245 'NAME' => 245 246 isset($_POST['name']) ? 246 247 stripslashes($_POST['name']) : @$row['name'], 247 248 248 249 'DIMENSIONS' => @$row['width'].' * '.@$row['height'], 249 250 250 251 'FILESIZE' => @$row['filesize'].' KB', 251 252 252 253 'REGISTRATION_DATE' => 253 254 format_date($row['date_available'], 'mysql_datetime', false), 254 255 255 256 'AUTHOR' => isset($_POST['author']) ? $_POST['author'] : @$row['author'], 256 257 257 258 'CREATION_DATE' => $date, 258 259 259 260 'KEYWORDS' => 260 261 isset($_POST['keywords']) ? 261 262 stripslashes($_POST['keywords']) : @$row['keywords'], 262 263 263 264 'DESCRIPTION' => 264 265 isset($_POST['description']) ? 265 266 stripslashes($_POST['description']) : @$row['comment'], 266 267 267 268 'F_ACTION' => 268 269 PHPWG_ROOT_PATH.'admin.php' … … 293 294 get_month_list('date_creation_month', $month); 294 295 $template->assign_vars(array('DATE_CREATION_YEAR_VALUE' => $year)); 295 296 296 297 $query = ' 297 298 SELECT category_id, uppercats … … 316 317 false 317 318 ); 318 319 319 320 if ($row['category_id'] == $storage_category_id) 320 321 { … … 355 356 array( 356 357 'image_id' => $_GET['image_id'], 358 'image_file' => $image_file, 357 359 'category' => $_GET['cat_id'], 358 360 ) … … 366 368 array( 367 369 'image_id' => $_GET['image_id'], 370 'image_file' => $image_file, 368 371 'category' => $category, 369 372 ) … … 382 385 ); 383 386 } 384 387 385 388 // associate to another category ? 386 389 $query = ' -
trunk/admin/user_perm.php
r1072 r1092 93 93 // accesible 94 94 $authorized_ids = array(); 95 95 96 96 $query = ' 97 97 SELECT cat_id … … 100 100 ;'; 101 101 $result = pwg_query($query); 102 102 103 103 while ($row = mysql_fetch_array($result)) 104 104 { 105 105 array_push($authorized_ids, $row['cat_id']); 106 106 } 107 107 108 108 $inserts = array(); 109 109 $to_autorize_ids = array_diff($private_uppercats, $authorized_ids); … … 138 138 'L_CAT_OPTIONS_TRUE'=>$lang['authorized'], 139 139 'L_CAT_OPTIONS_FALSE'=>$lang['forbidden'], 140 140 141 141 'F_ACTION' => 142 142 PHPWG_ROOT_PATH. … … 178 178 'groups.category', 179 179 array( 180 'NAME' => get_cat_display_name_cache($category['uppercats'], '', false)180 'NAME' => get_cat_display_name_cache($category['uppercats'], null, false) 181 181 ) 182 182 ); … … 198 198 ;'; 199 199 display_select_cat_wrapper($query_true,array(),'category_option_true'); 200 200 201 201 $result = pwg_query($query_true); 202 202 $authorized_ids = array(); -
trunk/category.php
r1090 r1092 46 46 session_destroy(); 47 47 setcookie(session_name(),'',0, cookie_path() ); 48 $url = 'category.php'; 49 redirect( $url ); 48 redirect( make_index_url() ); 50 49 } 51 50 … … 114 113 if (isset($page['category'])) 115 114 { 116 $template_title = get_cat_display_name( 117 $page['cat_name'], 118 'category.php?/category/', 119 false 120 ); 115 $template_title = get_cat_display_name( $page['cat_name'], '', false ); 121 116 } 122 117 else … … 207 202 'search_rules', 208 203 array( 209 'URL' => PHPWG_ROOT_PATH.'/search_rules.php?search_id='.$page['search'],204 'URL' => get_root_url().'search_rules.php?search_id='.$page['search'], 210 205 ) 211 206 ); … … 265 260 'special_cat', 266 261 array( 267 'URL' => PHPWG_ROOT_PATH.'random.php',262 'URL' => get_root_url().'random.php', 268 263 'TITLE' => $lang['random_cat_hint'], 269 264 'NAME' => $lang['random_cat'] … … 396 391 } 397 392 393 if (is_admin() and !empty($page['items']) ) 394 { 395 $template->assign_block_vars( 396 'caddie', 397 array( 398 'URL' => 399 add_url_param(duplicate_index_url(),'caddie=1') 400 ) 401 ); 402 } 403 398 404 //------------------------------------------------------ main part : thumbnails 399 405 if (isset($page['thumbnails_include'])) … … 454 460 if ($page['cat_uploadable']) 455 461 { 456 $url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['category'];462 $url = get_root_url().'upload.php?cat='.$page['category']; 457 463 $template->assign_block_vars( 458 464 'upload', -
trunk/comments.php
r1090 r1092 67 67 ); 68 68 69 $page['since'] = isset($_GET['since']) ? $_GET['since'] : 1;69 $page['since'] = isset($_GET['since']) ? $_GET['since'] : 3; 70 70 71 71 // on which field sorting … … 394 394 // name of the picture 395 395 $name = get_cat_display_name_cache( 396 $categories[$comment['category_id']]['uppercats'], '', false);396 $categories[$comment['category_id']]['uppercats'], null, false); 397 397 $name.= $conf['level_separator']; 398 398 if (!empty($elements[$comment['image_id']]['name'])) … … 412 412 413 413 // link to the full size picture 414 $url = PHPWG_ROOT_PATH.'picture.php?cat='.$comment['category_id'];415 $url.= '&image_id='.$comment['image_id'];416 417 414 $url = make_picture_url( 418 415 array( -
trunk/include/calendar_base.class.php
r1090 r1092 262 262 } 263 263 264 $dates = $page['chronology_date']; 265 while ($level<count($dates)) 266 { 267 array_pop($dates); 268 } 269 264 270 $nav_bar = $this->get_nav_bar_from_items( 265 $ page['chronology_date'],271 $dates, 266 272 $level_items, 267 273 null, -
trunk/include/calendar_monthly.class.php
r1090 r1092 225 225 $query.= ' 226 226 GROUP BY period 227 ORDER BY YEAR('.$this->date_field.') DESC ';227 ORDER BY YEAR('.$this->date_field.') DESC, MONTH('.$this->date_field.')'; 228 228 229 229 $result = pwg_query($query); … … 351 351 $row = mysql_fetch_array(pwg_query($query)); 352 352 $items[$day]['tn_path'] = get_thumbnail_src($row['path'], @$row['tn_ext']); 353 $items[$day]['tn_file'] = $row['file']; 353 $items[$day]['file'] = $row['file']; 354 $items[$day]['path'] = $row['path']; 355 $items[$day]['tn_ext'] = @$row['tn_ext']; 354 356 $items[$day]['width'] = $row['width']; 355 357 $items[$day]['height'] = $row['height']; … … 446 448 else 447 449 {// item not an image (tn is either mime type or an image) 448 $tn_size = @getimagesize($items[$day]['tn_path']); 450 $thumb = get_thumbnail_src( 451 $items[$day]['path'], @$items[$day]['tn_ext'], false 452 ); 453 $tn_size = @getimagesize($thumb); 449 454 } 450 455 $tn_width = $tn_size[0]; … … 549 554 array( 550 555 'IMAGE'=>$data['tn_path'], 551 'IMAGE_ALT'=>$data[' tn_file'],556 'IMAGE_ALT'=>$data['file'], 552 557 'IMAGE_TITLE'=>$thumbnail_title, 553 558 'U_IMG_LINK'=>$url -
trunk/include/category_default.inc.php
r1090 r1092 127 127 case 'search' : 128 128 { 129 $name = replace_search($name, $ _GET['search']);129 $name = replace_search($name, $page['search']); 130 130 break; 131 131 } -
trunk/include/category_recent_cats.inc.php
r1082 r1092 29 29 * This file is included by the main page to show thumbnails for recent_cats 30 30 * category 31 * 31 * 32 32 */ 33 33 … … 72 72 'IMAGE_ALT' => $row['file'], 73 73 'IMAGE_TITLE' => $lang['hint_category'], 74 74 75 75 'U_IMG_LINK' => make_index_url( 76 76 array( … … 84 84 'thumbnails.line.thumbnail.category_name', 85 85 array( 86 'NAME' => get_cat_display_name_cache($row['uppercats'], '', false),86 'NAME' => get_cat_display_name_cache($row['uppercats'], null, false), 87 87 ) 88 88 ); 89 89 90 90 // create a new line ? 91 91 if (++$row_number == $user['nb_image_line']) -
trunk/include/common.inc.php
r1085 r1092 62 62 @reset($_GET); 63 63 } 64 64 65 65 if( is_array($_POST) ) 66 66 { -
trunk/include/functions.inc.php
r1090 r1092 203 203 and is_dir($directory.'/'.$file) 204 204 and $file != 'CVS' 205 205 and $file != '.svn') 206 206 { 207 207 array_push($sub_dirs, $file); … … 357 357 { 358 358 if ( ($conf['history_admin'] ) or ( (! $conf['history_admin']) and (!is_admin()) ) ) 359 359 { 360 360 $login = ($user['id'] == $conf['guest_id']) 361 361 ? 'guest' : addslashes($user['username']); … … 1142 1142 $url = 1143 1143 get_root_url().'picture.php?' 1144 .'/'.$params['image_id']1145 1144 .'/'.make_section_in_URL($params) 1146 1145 ; 1147 1148 1146 $url = add_well_known_params_in_url($url, $params); 1147 $url.= '/'. 1148 $params['image_id']//.'-'. 1149 //get_filename_wo_extension($params['image_file']).'.htm' 1150 ; 1149 1151 return $url; 1150 1152 } -
trunk/include/functions_category.inc.php
r1084 r1092 48 48 { 49 49 $login_url = 50 './identification.php?redirect='50 get_root_url().'identification.php?redirect=' 51 51 .urlencode(urlencode($_SERVER['REQUEST_URI'])); 52 52 53 53 if (!$user['is_the_guest']) 54 54 { … … 279 279 { 280 280 $option = get_cat_display_name_cache($category['uppercats'], 281 '',281 null, 282 282 false); 283 283 } -
trunk/include/functions_html.inc.php
r1090 r1092 67 67 $title .= ' '.$lang['days']; 68 68 $size = getimagesize( $icon_url ); 69 $icon_url = get_root_url().$icon_url; 69 70 $output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;'; 70 71 $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />'; … … 245 246 * categories string returned contains categories as given in the input 246 247 * array $cat_informations. $cat_informations array must be an association 247 * of {category_id => category_name}. If url input parameter is empty,248 * of {category_id => category_name}. If url input parameter is null, 248 249 * returns only the categories name without links. 249 250 * … … 254 255 */ 255 256 function get_cat_display_name($cat_informations, 256 $url = ' category.php?/category/',257 $url = '', 257 258 $replace_space = true) 258 259 { … … 272 273 } 273 274 274 if ( $url == '')275 if ( !isset($url) ) 275 276 { 276 277 $output.= $name; 278 } 279 elseif ($url == '') 280 { 281 $output.= '<a class=""'; 282 $output.= ' href="'.make_index_url( array('category'=>$id) ).'">'; 283 $output.= $name.'</a>'; 277 284 } 278 285 else … … 307 314 */ 308 315 function get_cat_display_name_cache($uppercats, 309 $url = ' category.php?/category/',316 $url = '', 310 317 $replace_space = true) 311 318 { … … 340 347 } 341 348 342 if ( $url == '')349 if ( !isset($url) ) 343 350 { 344 351 $output.= $name; 352 } 353 elseif ($url == '') 354 { 355 $output.= ' 356 <a class="" 357 href="'.make_index_url( array('category'=>$category_id) ).'">'.$name.'</a>'; 345 358 } 346 359 else … … 475 488 476 489 function get_cat_display_name_from_id($cat_id, 477 $url = ' category.php?/category/',490 $url = '', 478 491 $replace_space = true) 479 492 { -
trunk/include/functions_rate.inc.php
-
Property
svn:eol-style
set to
native
-
Property
svn:keywords
set to
Author Date Id Revision
r1084 r1092 7 7 // | branch : BSF (Best So Far) 8 8 // | file : $RCSfile$ 9 // | last update : $Date: 2006-03-15 03:26:25 +0100 (mer, 15 mar 2006) $ 10 // | last modifier : $Author: rvelices $ 11 // | revision : $Revision: 1081 $ 12 // | revision : $Revision: 1081 $ 9 // | last update : $Date$ 10 // | last modifier : $Author$ 11 // | revision : $Revision$ 13 12 // +-----------------------------------------------------------------------+ 14 13 // | This program is free software; you can redistribute it and/or modify | … … 30 29 * rate a picture by a user 31 30 * 32 * @param int user identifier33 31 * @param int image identifier 34 32 * @param int rate 35 33 * @return void 36 34 */ 37 function rate_picture($ user_id, $image_id, $rate)35 function rate_picture($image_id, $rate) 38 36 { 39 global $conf ;37 global $conf, $user; 40 38 41 $query = '42 SELECT status 43 FROM '.USER_INFOS_TABLE.'44 WHERE user_id = '.$user_id.'45 ;';46 list($user_status) = mysql_fetch_array(pwg_query($query));39 if (!isset($rate) 40 or !$conf['rate'] 41 or !in_array($rate, $conf['rate_items'])) 42 { 43 return; 44 } 47 45 48 if ('guest' == $user_status 49 or 'generic' == $user_status) 46 $user_anonymous = is_autorize_status(ACCESS_CLASSIC) ? false : true; 47 48 if ($user_anonymous and !$conf['rate_anonymous']) 50 49 { 51 $user_anonymous = true;50 return; 52 51 } 53 else 52 53 if ($user_anonymous) 54 54 { 55 $user_anonymous = false; 56 } 57 58 if (isset($rate) 59 and $conf['rate'] 60 and (!$user_anonymous or $conf['rate_anonymous']) 61 and in_array($rate, $conf['rate_items'])) 62 { 63 if ($user_anonymous) 55 $ip_components = explode('.', $_SERVER["REMOTE_ADDR"]); 56 if (count($ip_components) > 3) 64 57 { 65 $ip_components = explode('.', $_SERVER["REMOTE_ADDR"]); 66 if (count($ip_components) > 3) 67 { 68 array_pop($ip_components); 69 } 70 $anonymous_id = implode ('.', $ip_components); 71 72 if (isset($_COOKIE['pwg_anonymous_rater'])) 73 { 74 if ($anonymous_id != $_COOKIE['pwg_anonymous_rater']) 75 { // client has changed his IP adress or he's trying to fool us 76 $query = ' 58 array_pop($ip_components); 59 } 60 $anonymous_id = implode ('.', $ip_components); 61 62 if (isset($_COOKIE['pwg_anonymous_rater'])) 63 { 64 if ($anonymous_id != $_COOKIE['pwg_anonymous_rater']) 65 { // client has changed his IP adress or he's trying to fool us 66 $query = ' 77 67 SELECT element_id 78 68 FROM '.RATE_TABLE.' … … 80 70 AND anonymous_id = \''.$anonymous_id.'\' 81 71 ;'; 82 83 84 85 86 72 $already_there = array_from_query($query, 'element_id'); 73 74 if (count($already_there) > 0) 75 { 76 $query = ' 87 77 DELETE 88 78 FROM '.RATE_TABLE.' … … 91 81 AND element_id NOT IN ('.implode(',', $already_there).') 92 82 ;'; 93 94 83 pwg_query($query); 84 } 95 85 96 86 $query = ' 97 87 UPDATE 98 88 '.RATE_TABLE.' … … 101 91 AND anonymous_id = \'' . $_COOKIE['pwg_anonymous_rater'].'\' 102 92 ;'; 103 93 pwg_query($query); 104 94 105 95 setcookie( 106 96 'pwg_anonymous_rater', 107 97 $anonymous_id, 108 98 strtotime('+10 years'), 109 99 cookie_path() 110 111 }112 }113 114 115 100 ); 101 } // end client changed ip 102 } // end client has cookie 103 else 104 { 105 setcookie( 116 106 'pwg_anonymous_rater', 117 107 $anonymous_id, … … 119 109 cookie_path() 120 110 ); 121 }122 111 } 123 124 112 } // end anonymous user 113 $query = ' 125 114 DELETE 126 115 FROM '.RATE_TABLE.' 127 116 WHERE element_id = '.$image_id.' 128 AND user_id = '.$user _id.'117 AND user_id = '.$user['id'].' 129 118 '; 130 131 132 133 134 135 119 if (isset($anonymous_id)) 120 { 121 $query.= ' AND anonymous_id = \''.$anonymous_id.'\''; 122 } 123 pwg_query($query); 124 $query = ' 136 125 INSERT 137 126 INTO '.RATE_TABLE.' … … 139 128 VALUES 140 129 (' 141 .$user_id.','142 143 144 145 130 .$user['id'].',' 131 .(isset($anonymous_id) ? '\''.$anonymous_id.'\'' : "''").',' 132 .$image_id.',' 133 .$rate 134 .',NOW()) 146 135 ;'; 147 148 149 150 136 pwg_query($query); 137 138 // update of images.average_rate field 139 $query = ' 151 140 SELECT ROUND(AVG(rate),2) AS average_rate 152 141 FROM '.RATE_TABLE.' 153 142 WHERE element_id = '.$image_id.' 154 143 ;'; 155 156 144 $row = mysql_fetch_array(pwg_query($query)); 145 $query = ' 157 146 UPDATE '.IMAGES_TABLE.' 158 147 SET average_rate = '.$row['average_rate'].' 159 148 WHERE id = '.$image_id.' 160 149 ;'; 161 pwg_query($query); 162 } 150 pwg_query($query); 163 151 } 164 152 -
Property
svn:eol-style
set to
-
trunk/include/functions_session.inc.php
r1063 r1092 82 82 { // mod_rewrite is activated for upper level directories. we must set the 83 83 // cookie to the path shown in the browser otherwise it will be discarded. 84 $scr = $_SERVER['REDIRECT_URL']; 84 if ( isset($_SERVER['PATH_INFO']) ) 85 { 86 $idx = strpos( $_SERVER['REDIRECT_URL'], $_SERVER['PATH_INFO'] ); 87 if ($idx !== false) 88 { 89 $scr = substr($_SERVER['REDIRECT_URL'], 0, $idx); 90 } 91 else 92 {//this should never happen 93 $scr='//'; 94 } 95 } 96 else 97 { 98 $scr = $_SERVER['REDIRECT_URL']; 99 } 85 100 } 86 101 else 87 102 { 88 $scr = $_SERVER[' PHP_SELF'];103 $scr = $_SERVER['SCRIPT_NAME']; 89 104 } 90 105 return substr($scr,0,strrpos( $scr,'/')); -
trunk/include/page_tail.php
r1024 r1092 30 30 array( 31 31 'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '', 32 33 'L_GEN_TIME' => $lang['generation_time'], 34 'L_SQL_QUERIES_IN' => $lang['sql_queries_in'], 35 'L_SEND_MAIL' => $lang['send_mail'], 32 36 33 'L_TITLE_MAIL' => urlencode($lang['title_send_mail']), 37 'L_POWERED_BY'=>$lang['powered_by']38 34 )); 39 35 … … 51 47 52 48 //------------------------------------------------------------- generation time 49 $debug_vars = array(); 53 50 if ($conf['show_gt']) 54 51 { … … 60 57 $page['queries_time'] = 0; 61 58 } 62 63 $template->assign_block_vars( 64 'debug', 59 60 $debug_vars = array_merge($debug_vars, 65 61 array('TIME' => $time, 66 62 'NB_QUERIES' => $page['count_queries'], 67 'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')); 63 'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s') 64 ); 68 65 } 69 66 70 if ($conf['show_queries']) 67 if ($conf['show_queries']) 71 68 { 72 $template->assign_block_vars( 73 'debug', 74 array('QUERIES_LIST' => $debug) 75 ); 69 $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) ); 70 } 71 72 if ( !empty($debug_vars) ) 73 { 74 $template->assign_block_vars('debug',$debug_vars ); 76 75 } 77 76 -
trunk/include/picture_metadata.inc.php
-
Property
svn:eol-style
set to
native
-
Property
svn:keywords
set to
Author Date Id Revision
r1082 r1092 7 7 // | branch : BSF (Best So Far) 8 8 // | file : $RCSfile$ 9 // | last update : $Date : 2006-03-09 00:14:53 +0100 (jeu, 09 mar 2006)$10 // | last modifier : $Author : rub$11 // | revision : $Revision : 1070$9 // | last update : $Date$ 10 // | last modifier : $Author$ 11 // | revision : $Revision$ 12 12 // +-----------------------------------------------------------------------+ 13 13 // | This program is free software; you can redistribute it and/or modify | … … 28 28 /** 29 29 * This file is included by the picture page to manage picture metadata 30 * 30 * 31 31 */ 32 32 33 if ($metadata_showable and isset($_GET[' show_metadata']))33 if ($metadata_showable and isset($_GET['metadata'])) 34 34 { 35 35 include_once(PHPWG_ROOT_PATH.'/include/functions_metadata.inc.php'); … … 42 42 } 43 43 44 if ($exif = @read_exif_data($picture['current']['src ']))44 if ($exif = @read_exif_data($picture['current']['src_file_system'])) 45 45 { 46 46 $template->assign_block_vars( -
Property
svn:eol-style
set to
-
trunk/include/picture_rate.inc.php
-
Property
svn:keywords
set to
Author Date Id Revision
r1090 r1092 7 7 // | branch : BSF (Best So Far) 8 8 // | file : $RCSfile$ 9 // | last update : $Date : 2006-03-09 00:14:53 +0100 (jeu, 09 mar 2006)$10 // | last modifier : $Author : rub$11 // | revision : $Revision : 1070$9 // | last update : $Date$ 10 // | last modifier : $Author$ 11 // | revision : $Revision$ 12 12 // +-----------------------------------------------------------------------+ 13 13 // | This program is free software; you can redistribute it and/or modify | … … 55 55 } 56 56 57 if ($conf['rate_anonymous'] or !$user['is_the_guest'])57 if ($conf['rate_anonymous'] or is_autorize_status(ACCESS_CLASSIC) ) 58 58 { 59 59 if ($row['count']>0) … … 64 64 AND user_id = '.$user['id'] ; 65 65 66 if ( $user['is_the_guest'])66 if ( !is_autorize_status(ACCESS_CLASSIC) ) 67 67 { 68 68 $ip_components = explode('.', $_SERVER['REMOTE_ADDR']); -
Property
svn:keywords
set to
-
trunk/include/section_init.inc.php
-
Property
svn:keywords
set to
Author Date Id Revision
r1090 r1092 7 7 // | branch : BSF (Best So Far) 8 8 // | file : $RCSfile$ 9 // | last update : $Date : 2006-01-27 02:11:43 +0100 (ven, 27 jan 2006)$10 // | last modifier : $Author : rvelices$11 // | revision : $Revision : 1014$9 // | last update : $Date$ 10 // | last modifier : $Author$ 11 // | revision : $Revision$ 12 12 // +-----------------------------------------------------------------------+ 13 13 // | This program is free software; you can redistribute it and/or modify | … … 85 85 $next_token = 0; 86 86 if (basename($_SERVER['SCRIPT_NAME']) == 'picture.php') 87 { 88 89 // the first token must be the numeric identifier of the picture 90 preg_match('/(\d+)/', $tokens[$next_token], $matches); 91 if (!isset($matches[1])) 92 { 93 die('Fatal: picture identifier is missing'); 94 } 95 $page['image_id'] = $matches[1]; 96 97 $next_token++; 87 { // the last token must be the identifier for the picture 88 $token = array_pop($tokens); 89 if ( is_numeric($token) ) 90 { 91 $page['image_id'] = $token; 92 } 93 else 94 { 95 preg_match('/^(\d+-)?((.*)[_\.]html?)?$/', $token, $matches); 96 if ( isset($matches[1]) and is_numeric($matches[1]) ) 97 { 98 $page['image_id'] = $matches[1]; 99 if ( !empty($matches[3]) ) 100 { 101 $page['image_file'] = $matches[3]; 102 } 103 } 104 else 105 { 106 if ( !empty($matches[3]) ) 107 { 108 $page['image_file'] = $matches[3]; 109 } 110 else 111 { 112 die('Fatal: picture identifier is missing'); 113 } 114 } 115 } 98 116 } 99 117 … … 274 292 'uppercats' => $result['uppercats'], 275 293 276 'title' => get_cat_display_name($result['name'], '', false),277 ) 278 ); 279 280 if (!isset($ _GET['calendar']))294 'title' => get_cat_display_name($result['name'], null, false), 295 ) 296 ); 297 298 if (!isset($page['chronology_field'])) 281 299 { 282 300 $query = ' … … 322 340 FROM '.IMAGES_TABLE.' 323 341 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 324 WHERE '.get_sql_search_clause($ _GET['search']).'342 WHERE '.get_sql_search_clause($page['search']).' 325 343 AND '.$forbidden.' 326 344 '.$conf['order_by'].' … … 490 508 } 491 509 510 if (basename($_SERVER['SCRIPT_NAME']) == 'picture.php' 511 and !isset($page['image_id']) ) 512 { 513 $query = ' 514 SELECT id,file 515 FROM '.IMAGES_TABLE .' 516 WHERE id IN ('.implode(',',$page['items']).') 517 AND file LIKE "' . $page['image_file'] . '.%" ESCAPE "|"' 518 ; 519 $result = pwg_query($query); 520 if (mysql_num_rows($result)>0) 521 { 522 list($page['image_id'], $page['image_file']) = mysql_fetch_row($result); 523 } 524 } 492 525 ?> -
Property
svn:keywords
set to
-
trunk/include/template.php
r960 r1092 35 35 36 36 var $classname = "Template"; 37 37 38 38 // variable that holds all the data we'll be substituting into 39 39 // the compiled templates. … … 44 44 // $this->_tpldata[.][0][varname] == value 45 45 var $_tpldata = array(); 46 46 47 47 // Hash of filenames for each template handle. 48 48 var $files = array(); 49 49 50 50 // Root template directory. 51 51 var $root = ""; … … 53 53 // this will hash handle names to the compiled code for that handle. 54 54 var $compiled_code = array(); 55 55 56 56 // This will hold the uncompiled code for that handle. 57 57 var $uncompiled_code = array(); … … 59 59 // output 60 60 var $output = ''; 61 61 62 62 /** 63 63 * Constructor. Simply sets the root dir. … … 68 68 $this->set_rootdir($root); 69 69 } 70 70 71 71 /** 72 72 * Destroys this template object. Should be called when you're done with … … 88 88 return false; 89 89 } 90 90 91 91 $this->root = $dir; 92 92 return true; 93 93 } 94 94 95 95 /** 96 96 * Sets the template filenames for handles. $filename_array should be a … … 103 103 return false; 104 104 } 105 105 106 106 reset($filename_array); 107 107 while(list($handle, $filename) = each($filename_array)) … … 109 109 $this->files[$handle] = $this->make_filename($filename); 110 110 } 111 112 return true; 113 } 114 115 111 112 return true; 113 } 114 115 116 116 /** 117 117 * Load the file for the handle, compile the file, and run the compiled … … 124 124 die("Template->pparse(): Couldn't load template file for handle $handle"); 125 125 } 126 126 127 127 // actually compile the template now. 128 128 if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle])) … … 147 147 die("Template->pparse(): Couldn't load template file for handle $handle"); 148 148 } 149 149 150 150 // actually compile the template now. 151 151 if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle])) … … 170 170 echo $this->output; 171 171 } 172 172 173 173 /** 174 174 * Inserts the uncompiled code for $handle as the value of $varname in the … … 185 185 die("Template->assign_var_from_handle(): Couldn't load template file for handle $handle"); 186 186 } 187 187 188 188 // Compile it, with the "no echo statements" option on. 189 189 $_str = ""; 190 190 $code = $this->compile($this->uncompiled_code[$handle], true, '_str'); 191 191 192 192 // evaluate the variable assignment. 193 193 eval($code); 194 194 // assign the value of the generated variable to the given varname. 195 195 $this->assign_var($varname, $_str); 196 197 return true; 198 } 199 196 197 return true; 198 } 199 200 200 /** 201 201 * Block-level variable assignment. Adds a new block iteration with the … … 221 221 // variable assignments. 222 222 $str .= '[\'' . $blocks[$blockcount] . '.\'][] = $vararray;'; 223 223 224 224 // Now we evaluate this assignment we've built up. 225 225 eval($str); … … 231 231 $this->_tpldata[$blockname . '.'][] = $vararray; 232 232 } 233 234 return true; 235 } 236 233 234 return true; 235 } 236 237 237 /** 238 238 * Root-level variable assignment. Adds to current assignments, overriding … … 246 246 $this->_tpldata['.'][0][$key] = $val; 247 247 } 248 249 return true; 250 } 251 248 249 return true; 250 } 251 252 252 /** 253 253 * Root-level variable assignment. Adds to current assignments, overriding … … 257 257 { 258 258 $this->_tpldata['.'][0][$varname] = $varval; 259 260 return true; 261 } 262 263 259 260 return true; 261 } 262 263 264 264 /** 265 265 * Generates a full path+filename for the given filename, which can either … … 275 275 $filename = $this->root.'/'.$filename; 276 276 } 277 277 278 278 if (!file_exists($filename)) 279 279 { … … 283 283 return $filename; 284 284 } 285 286 285 286 287 287 /** 288 288 * If not already done, load the file for the given handle and populate … … 298 298 return true; 299 299 } 300 300 301 301 // If we don't have a file assigned to this handle, die. 302 302 if (!isset($this->files[$handle])) … … 304 304 die("Template->loadfile(): No file specified for handle $handle"); 305 305 } 306 306 307 307 $filename = $this->files[$handle]; 308 308 309 309 $str = implode("", @file($filename)); 310 310 if (empty($str)) … … 329 329 function compile($code, $do_not_echo = false, $retvar = '') 330 330 { 331 $code = preg_replace('/\{pwg_root\}/e', "get_root_url()", $code); 331 332 // PWG specific : communication between template and $lang 332 333 $code = preg_replace('/\{lang:([^}]+)\}/e', "l10n('$1')", $code); 333 334 // PWG specific : expand themeconf.inc.php variables 334 335 $code = preg_replace('/\{themeconf:([^}]+)\}/e', "get_themeconf('$1')", $code); 335 336 336 337 // replace \ with \\ and then ' with \'. 337 338 $code = str_replace('\\', '\\\\', $code); 338 339 $code = str_replace('\'', '\\\'', $code); 339 340 340 341 // change template varrefs into PHP varrefs 341 342 342 343 // This one will handle varrefs WITH namespaces 343 344 $varrefs = array(); … … 349 350 $varname = $varrefs[3][$i]; 350 351 $new = $this->generate_block_varref($namespace, $varname); 351 352 352 353 $code = str_replace($varrefs[0][$i], $new, $code); 353 354 } 354 355 355 356 // This will handle the remaining root-level varrefs 356 357 $code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code); 357 358 358 359 // Break it up into lines. 359 360 $code_lines = explode("\n", $code); 360 361 361 362 $block_nesting_level = 0; 362 363 $block_names = array(); 363 364 $block_names[0] = "."; 364 365 365 366 // Second: prepend echo ', append ' . "\n"; to each line. 366 367 $line_count = sizeof($code_lines); … … 372 373 $n[0] = $m[0]; 373 374 $n[1] = $m[1]; 374 375 375 376 // Added: dougk_ff7-Keeps templates from bombing if begin is on 376 377 // the same line as end.. I think. :) … … 389 390 { 390 391 // This block is nested. 391 392 392 393 // Generate a namespace string for this block. 393 394 $namespace = implode('.', $block_names); … … 402 403 $code_lines[$i] .= "\n" . '{'; 403 404 } 404 405 405 406 // We have the end of a block. 406 407 unset($block_names[$block_nesting_level]); … … 425 426 { 426 427 // This block is nested. 427 428 428 429 // Generate a namespace string for this block. 429 430 $namespace = implode('.', $block_names); … … 456 457 else 457 458 { 458 $code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";'; 459 $code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";'; 459 460 } 460 461 } 461 462 } 462 463 463 464 // Bring it back into a single string of lines of code. 464 465 $code = implode("\n", $code_lines); 465 466 return $code ; 466 467 } 468 469 467 468 } 469 470 470 471 /** 471 472 * Generates a reference to the given variable inside the given (possibly … … 479 480 // Strip the trailing period. 480 481 $namespace = substr($namespace, 0, strlen($namespace) - 1); 481 482 482 483 // Get a reference to the data block for this namespace. 483 484 $varref = $this->generate_block_data_ref($namespace, true); 484 485 // Prepend the necessary code to stick this in an echo line. 485 486 486 487 // Append the variable reference. 487 488 $varref .= '[\'' . $varname . '\']'; 488 489 489 490 $varref = '\' . ( ( isset(' . $varref . ') ) ? ' . $varref . ' : \'\' ) . \''; 490 491 491 492 return $varref; 492 493 } 494 495 493 494 } 495 496 496 497 /** 497 498 * Generates a reference to the array of data values for the given … … 521 522 $varref .= '[$_' . $blocks[$blockcount] . '_i]'; 522 523 } 523 524 524 525 return $varref; 525 526 } 526 527 527 528 } 528 529 -
trunk/picture.php
r1090 r1092 169 169 case 'rate' : 170 170 { 171 rate_picture($ user['id'], $page['image_id'], $_GET['rate']);171 rate_picture($page['image_id'], $_GET['rate']); 172 172 redirect($url_self); 173 173 } … … 371 371 372 372 $title_img = $picture['current']['name']; 373 if ( isset( $page['cat '] ) )374 { 375 if (is_numeric( $page['cat '] ))373 if ( isset( $page['category'] ) ) 374 { 375 if (is_numeric( $page['category'] )) 376 376 { 377 377 $title_img = replace_space(get_cat_display_name($page['cat_name'])); 378 378 } 379 379 else if ( $page['cat'] == 'search' ) 380 { 380 { // ??? TODO -remove or change some remainings from old variables 381 381 $title_img = replace_search( $title_img, $_GET['search'] ); 382 382 } … … 405 405 406 406 // metadata 407 $url_metadata = duplicate_picture_URL(); 407 408 if ($conf['show_exif'] or $conf['show_iptc']) 408 409 { 409 410 $metadata_showable = true; 411 if ( !isset($_GET['metadata']) ) 412 { 413 $url_metadata = add_url_param( $url_metadata, 'metadata' ); 414 } 410 415 } 411 416 else … … 413 418 $metadata_showable = false; 414 419 } 415 416 // $url_metadata = PHPWG_ROOT_PATH.'picture.php';417 // $url_metadata .= get_query_string_diff(array('add_fav', 'slideshow', 'show_metadata'));418 // if ($metadata_showable and !isset($_GET['show_metadata']))419 // {420 // $url_metadata.= '&show_metadata=1';421 // }422 423 // TODO: rewrite metadata display to toggle on/off user_infos.show_metadata424 $url_metadata = duplicate_picture_URL();425 420 426 421 $page['body_id'] = 'thePicturePage'; -
trunk/search_rules.php
r1083 r1092 141 141 'NAME' => get_cat_display_name_cache( 142 142 $category['uppercats'], 143 '', // no url on category names143 null, // no url on category names 144 144 false // no blank replacement 145 145 ) -
trunk/template/yoga/category.tpl
r1083 r1092 92 92 </p> 93 93 <ul class="actions"> 94 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{ themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li>95 <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{ themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li>94 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> 95 <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> 96 96 </ul> 97 97 … … 120 120 121 121 <!-- BEGIN caddie --> 122 <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{ themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li>122 <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li> 123 123 <!-- END caddie --> 124 124 125 125 <!-- BEGIN edit --> 126 <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{ themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li>126 <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{pwg_root}{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li> 127 127 <!-- END edit --> 128 128 129 129 <!-- BEGIN search_rules --> 130 <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{ themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>130 <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li> 131 131 <!-- END search_rules --> 132 132 133 133 <!-- BEGIN mode_normal --> 134 <li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{ themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li>134 <li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{pwg_root}{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li> 135 135 <!-- END mode_normal --> 136 136 <!-- BEGIN mode_posted --> 137 <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}"><img src="{ themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>137 <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li> 138 138 <!-- END mode_posted --> 139 139 <!-- BEGIN mode_created --> 140 <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}"><img src="{ themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li>140 <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li> 141 141 <!-- END mode_created --> 142 142 </ul> -
trunk/template/yoga/footer.tpl
r1012 r1092 1 1 <div id="copyright"> 2 2 <!-- BEGIN debug --> 3 { L_GEN_TIME} {debug.TIME} ({debug.NB_QUERIES} {L_SQL_QUERIES_IN} {debug.SQL_TIME}) -3 {lang:generation_time} {debug.TIME} ({debug.NB_QUERIES} {lang:sql_queries_in} {debug.SQL_TIME}) - 4 4 <!-- END debug --> 5 5 … … 8 8 to show the origin of the script...--> 9 9 10 { L_POWERED_BY} <a href="http://www.phpwebgallery.net" class="back">PhpWebGallery</a>10 {lang:powered_by} <a href="http://www.phpwebgallery.net" class="back">PhpWebGallery</a> 11 11 {VERSION} 12 12 <!-- BEGIN contact --> 13 - { L_SEND_MAIL}13 - {lang:send_mail} 14 14 <a href="mailto:{contact.MAIL}?subject={L_TITLE_MAIL}">{lang:Webmaster}</a> 15 15 <!-- END contact --> -
trunk/template/yoga/header.tpl
r1071 r1092 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}"> 6 <link rel="shortcut icon" type="image/x-icon" href=" template-common/favicon.ico" />7 <link rel="stylesheet" type="text/css" href=" template/{themeconf:template}/default-layout.css">6 <link rel="shortcut icon" type="image/x-icon" href="{pwg_root}template-common/favicon.ico" /> 7 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-layout.css"> 8 8 <!-- the next css is used to fix khtml (Konqueror/Safari) issue 9 9 the "text/nonsense" prevents gecko based browsers to load it --> 10 <link rel="stylesheet" type="text/nonsense" href=" template/{themeconf:template}/fix-khtml.css">11 <link rel="stylesheet" type="text/css" media="print" href=" template/{themeconf:template}/print.css">12 <link rel="stylesheet" type="text/css" href=" template/{themeconf:template}/default-colors.css">13 <link rel="stylesheet" type="text/css" href=" template/{themeconf:template}/theme/{themeconf:theme}/theme.css">10 <link rel="stylesheet" type="text/nonsense" href="{pwg_root}template/{themeconf:template}/fix-khtml.css"> 11 <link rel="stylesheet" type="text/css" media="print" href="{pwg_root}template/{themeconf:template}/print.css"> 12 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-colors.css"> 13 <link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/theme.css"> 14 14 <!-- BEGIN next --> 15 15 <link rel="prefetch" href="{next.U_IMG_SRC}"> … … 19 19 <!-- END refresh --> 20 20 <title>{GALLERY_TITLE}:{PAGE_TITLE}</title> 21 <script type="text/javascript" src=" include/scripts.js"></script>21 <script type="text/javascript" src="{pwg_root}include/scripts.js"></script> 22 22 <!--[if gte IE 5.5000]> 23 <script type="text/javascript" src=" include/pngfix.js"></script>23 <script type="text/javascript" src="{pwg_root}include/pngfix.js"></script> 24 24 <![endif]--> 25 25 </head> -
trunk/template/yoga/picture.tpl
r1085 r1092 15 15 16 16 <div class="randomButtons"> 17 <a href="{U_SLIDESHOW}" title="{L_SLIDESHOW}" rel="nofollow"><img src="{ themeconf:icon_dir}/slideshow.png" class="button" alt="{L_SLIDESHOW}"></a>18 <a href="{U_METADATA}" title="{L_PICTURE_METADATA}"><img src="{ themeconf:icon_dir}/metadata.png" class="button" alt="{L_PICTURE_METADATA}"></a>17 <a href="{U_SLIDESHOW}" title="{L_SLIDESHOW}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{L_SLIDESHOW}"></a> 18 <a href="{U_METADATA}" title="{L_PICTURE_METADATA}"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{L_PICTURE_METADATA}"></a> 19 19 <!-- BEGIN representative --> 20 <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{ themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"/></a>20 <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{pwg_root}{themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"/></a> 21 21 <!-- END representative --> 22 22 <!-- BEGIN favorite --> … … 24 24 <!-- END favorite --> 25 25 <!-- BEGIN download --> 26 <a href="{download.U_DOWNLOAD}" title="{L_DOWNLOAD}"><img src="{ themeconf:icon_dir}/save.png" class="button" alt="{L_DOWNLOAD}"></a>26 <a href="{download.U_DOWNLOAD}" title="{L_DOWNLOAD}"><img src="{pwg_root}{themeconf:icon_dir}/save.png" class="button" alt="{L_DOWNLOAD}"></a> 27 27 <!-- END download --> 28 28 <!-- BEGIN admin --> 29 <a href="{U_ADMIN}" title="{L_ADMIN}"><img src="{ themeconf:icon_dir}/preferences.png" class="button" alt="{L_ADMIN}"></a>29 <a href="{U_ADMIN}" title="{L_ADMIN}"><img src="{pwg_root}{themeconf:icon_dir}/preferences.png" class="button" alt="{L_ADMIN}"></a> 30 30 <!-- END admin --> 31 31 <!-- BEGIN caddie --> 32 <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{ themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a>32 <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a> 33 33 <!-- END caddie --> 34 34 </div> … … 36 36 <div class="navButtons"> 37 37 <!-- BEGIN last --> 38 <a class="navButton prev" href="{last.U_IMG}" rel="last"><img src="{ themeconf:icon_dir}/last.png" class="button" alt="{lang:last_page}"></a>38 <a class="navButton prev" href="{last.U_IMG}" rel="last"><img src="{pwg_root}{themeconf:icon_dir}/last.png" class="button" alt="{lang:last_page}"></a> 39 39 <!-- END last --> 40 40 <!-- BEGIN next --> 41 <a class="navButton next" href="{next.U_IMG}" title="{L_NEXT_IMG}{next.TITLE_IMG}" rel="next"><img src="{ themeconf:icon_dir}/right.png" class="button" alt="next"></a>41 <a class="navButton next" href="{next.U_IMG}" title="{L_NEXT_IMG}{next.TITLE_IMG}" rel="next"><img src="{pwg_root}{themeconf:icon_dir}/right.png" class="button" alt="next"></a> 42 42 <!-- END next --> 43 <a class="navButton up" href="{U_UP}" title="{L_UP_HINT}" rel="up"><img src="{ themeconf:icon_dir}/up.png" class="button" alt="{L_UP_ALT}"></a>43 <a class="navButton up" href="{U_UP}" title="{L_UP_HINT}" rel="up"><img src="{pwg_root}{themeconf:icon_dir}/up.png" class="button" alt="{L_UP_ALT}"></a> 44 44 <!-- BEGIN previous --> 45 <a class="navButton prev" href="{previous.U_IMG}" title="{L_PREV_IMG}{previous.TITLE_IMG}" rel="prev"><img src="{ themeconf:icon_dir}/left.png" class="button" alt="previous"></a>45 <a class="navButton prev" href="{previous.U_IMG}" title="{L_PREV_IMG}{previous.TITLE_IMG}" rel="prev"><img src="{pwg_root}{themeconf:icon_dir}/left.png" class="button" alt="previous"></a> 46 46 <!-- END previous --> 47 47 <!-- BEGIN first --> 48 <a class="navButton prev" href="{first.U_IMG}" rel="first"><img src="{ themeconf:icon_dir}/first.png" class="button" alt="{lang:first_page}"></a>48 <a class="navButton prev" href="{first.U_IMG}" rel="first"><img src="{pwg_root}{themeconf:icon_dir}/first.png" class="button" alt="{lang:first_page}"></a> 49 49 <!-- END first --> 50 50 </div> … … 171 171 <p class="userCommentDelete"> 172 172 <a href="{comments.comment.delete.U_COMMENT_DELETE}" title="{L_DELETE_COMMENT}"> 173 <img src="{ themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{L_DELETE}]"/>173 <img src="{pwg_root}{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{L_DELETE}]"/> 174 174 </a> 175 175 </p> -
trunk/template/yoga/theme/clear/themeconf.inc.php
-
Property
svn:eol-style
set to
native
r1029 r1092 3 3 'template' => 'yoga', 4 4 'theme' => 'clear', 5 'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon',6 'admin_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/admin',7 'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/'5 'icon_dir' => 'template/yoga/icon', 6 'admin_icon_dir' => 'template/yoga/icon/admin', 7 'mime_icon_dir' => 'template/yoga/icon/mimetypes/' 8 8 ); 9 9 ?> -
Property
svn:eol-style
set to
-
trunk/template/yoga/theme/dark/themeconf.inc.php
-
Property
svn:eol-style
set to
native
r1029 r1092 3 3 'template' => 'yoga', 4 4 'theme' => 'dark', 5 'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon',6 'admin_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/admin',7 'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/'5 'icon_dir' => 'template/yoga/icon', 6 'admin_icon_dir' => 'template/yoga/icon/admin', 7 'mime_icon_dir' => 'template/yoga/icon/mimetypes/' 8 8 ); 9 9 ?> -
Property
svn:eol-style
set to
Note: See TracChangeset
for help on using the changeset viewer.