Changeset 35

Show
Ignore:
Timestamp:
09/25/05 16:27:02 (7 years ago)
Author:
alexx
Message:
  • fix a little CSS bug
  • REALLY fix metalbum bug in add/delete (better regexp and condition before inserting)
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/actions/metalbum/add.action.php

    r34 r35  
    2626$type = $_POST['type']; 
    2727 
    28 if(is_valid('metalbum_name', $login) && is_valid('metalbum_type', $type)) 
     28if(is_valid('metalbum_name', $login.'@'.$type)) 
    2929        $db->query('INSERT INTO metalbum SET id=?,login=?, type=?', array($_SESSION['my_id'], $login, $type)); 
    3030else { 
    3131        $_SESSION['error']['title'] = 'Login invalid'; 
    32         $_SESSION['error']['msg'] = "Valid characters are 'a-z', '0-9', '+', '-' and '_' "; 
     32        $_SESSION['error']['msg'] = "Valid characters are 'a-z', '0-9', '.', '-' and '_' "; 
    3333} 
    3434header('Location: /metalbum'); 
  • trunk/includes/functions.inc.php

    r33 r35  
    480480                { 
    481481                        list($login, $type) = split('@', $string); 
    482                         if(ereg("[a-zA-Z0-9_-]{2,32}", $login) && is_valid('metalbum_type', $type)) 
     482                        if(ereg("^[a-zA-Z0-9\._-]{2,32}$", $login) && is_valid('metalbum_type', $type)) 
    483483                                return true; 
    484484                } 
  • trunk/www/default.css

    r33 r35  
    149149 
    150150th.title, th.profileHeader, tr.profileHeader { 
    151 background: #E6FFBF url(/img/th_bg.jpg) repeat-x; 
     151background: #E6FFBF url(/img/bg_th.png) repeat-x; 
    152152text-align: right; 
    153153color: green;