plugins/SpecialAdmin.php
changeset 511 f88c8c79d784
parent 504 bc8e0e9ee01d
child 519 94214ec0871c
equal deleted inserted replaced
510:290fa071842a 511:f88c8c79d784
   310     setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' ));
   310     setConfig('avatar_upload_file', ( isset($_POST['avatar_upload_file']) ? '1' : '0' ));
   311     setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' ));
   311     setConfig('avatar_upload_http', ( isset($_POST['avatar_upload_http']) ? '1' : '0' ));
   312     
   312     
   313     if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) )
   313     if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) )
   314     {
   314     {
   315       if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*$/', $_POST['avatar_directory']) )
   315       if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*\/?$/', $_POST['avatar_directory']) )
   316       {
   316       {
   317         setConfig('avatar_directory', $_POST['avatar_directory']);
   317         setConfig('avatar_directory', $_POST['avatar_directory']);
   318       }
   318       }
   319       else
   319       else
   320       {
   320       {