Changeset 1176


Ignore:
Timestamp:
Apr 15, 2006, 12:15:24 AM (18 years ago)
Author:
rvelices
Message:

merge r1175 from branch-1_6 into trunk

fix: sessions

css 3px image border goes from both clear and dark to image.css

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_session.inc.php

    r1164 r1176  
    166166;';
    167167  pwg_query($query);
    168   if ( mysql_affected_rows()==-1 )
    169   {
     168  if ( mysql_affected_rows()==0 )
     169  { // 2 possible cases:
     170    //- the user has just login so we need to insert
     171    //- the user went through 2 pages very fast (in the same second), so
     172    //  data and expiration are the same as before
    170173    $query = '
     174SELECT id FROM '.SESSIONS_TABLE.'
     175  WHERE id = \''.$session_id.'\'
     176;';
     177    $id =  array_from_query( $query, array('id') );
     178    if ( empty($id) )
     179    {
     180      $query = '
    171181INSERT INTO '.SESSIONS_TABLE.'
    172182  (id,data,expiration)
    173183  VALUES(\''.$session_id.'\',\''.$data.'\',now())
    174184;';
    175     pwg_query($query);
     185      pwg_query($query);
     186    }
    176187  }
    177188  return true;
  • trunk/template/yoga/image.css

    r950 r1176  
    6666}
    6767
     68#theImage IMG {
     69  border-width: 3px;
     70  border-style: solid;
     71}
     72
    6873.navThumb {
    6974    margin-top: 2px;
     
    97102    font-weight: bold;
    98103    text-align: right;
    99     padding-right: 0.5em; 
     104    padding-right: 0.5em;
    100105}
    101106
  • trunk/template/yoga/theme/clear/theme.css

    r1136 r1176  
    2020
    2121/* borders */
    22 #menubar DL, #content, #imageToolBar, #theImage IMG,
     22#menubar DL, #content, #imageToolBar,
    2323#comments DIV.comment BLOCKQUOTE {
    2424  border: 1px solid #d3d3d3;
     
    2626
    2727#theImage IMG {
    28   border-width: 3px;
     28  border-color: #d3d3d3;
    2929}
    3030
  • trunk/template/yoga/theme/dark/theme.css

    r1136 r1176  
    4747
    4848/* borders */
    49 #menubar DL, #content, #imageToolBar, #theImage IMG,
     49#menubar DL, #content, #imageToolBar,
    5050#comments DIV.comment BLOCKQUOTE {
    5151  border: 1px solid #000000;
     
    5353
    5454#theImage IMG {
    55   border-width: 3px;
     55  border-color: #000000;
    5656}
    5757
Note: See TracChangeset for help on using the changeset viewer.