Changeset 1094 for trunk/picture.php


Ignore:
Timestamp:
Mar 23, 2006, 2:49:04 AM (18 years ago)
Author:
rvelices
Message:

URL rewrite: 3 options in the config file define behaviour (question mark
removal, file name for picture and .php extension removal)

fix: added unsigned for column in install sql - for the sake of uniformization

change: add_url_param is now add_url_params and takes an array as parameter
instead of a string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1092 r1094  
    358358;
    359359
    360 $url_slide = add_url_param(
     360$url_slide = add_url_params(
    361361  $picture['current']['url'],
    362   'slideshow='.$conf['slideshow_period'] );
     362  array( 'slideshow'=>$conf['slideshow_period'] )
     363  );
    363364
    364365$title =  $picture['current']['name'];
     
    367368{
    368369  $refresh= $_GET['slideshow'];
    369   $url_link = add_url_param($picture['next']['url'], 'slideshow='.$refresh);
     370  $url_link = add_url_params(
     371      $picture['next']['url'],
     372      array('slideshow'=>$refresh)
     373    );
    370374}
    371375
     
    411415  if ( !isset($_GET['metadata']) )
    412416  {
    413     $url_metadata = add_url_param( $url_metadata, 'metadata' );
     417    $url_metadata = add_url_params( $url_metadata, array('metadata'=>null) );
    414418  }
    415419}
     
    527531    'representative',
    528532    array(
    529       'URL' => add_url_param($url_self, 'action=set_as_representative')
     533      'URL' => add_url_params($url_self,
     534                  array('action'=>'set_as_representative')
     535               )
    530536      )
    531537    );
     
    538544    'caddie',
    539545    array(
    540       'URL' => add_url_param($url_self, 'action=add_to_caddie')
     546      'URL' => add_url_params($url_self,
     547                  array('action'=>'add_to_caddie')
     548               )
    541549      )
    542550    );
     
    564572        'FAVORITE_HINT' => $lang['add_favorites_hint'],
    565573        'FAVORITE_ALT'  => $lang['add_favorites_alt'],
    566         'U_FAVORITE'    => add_url_param($url_self, 'action=add_to_favorites'),
     574        'U_FAVORITE'    => add_url_params(
     575                              $url_self,
     576                              array('action'=>'add_to_favorites')
     577                           ),
    567578        )
    568579      );
     
    576587        'FAVORITE_HINT' => $lang['del_favorites_hint'],
    577588        'FAVORITE_ALT'  => $lang['del_favorites_alt'],
    578         'U_FAVORITE'    => add_url_param($url_self, 'action=remove_from_favorites'),
     589        'U_FAVORITE'    => add_url_params(
     590                              $url_self,
     591                              array('action'=>'remove_from_favorites')
     592                           )
    579593        )
    580594      );
Note: See TracChangeset for help on using the changeset viewer.