Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if( isset( $_POST[ 'boton' ] ) )
  2. {
  3. if( empty( $_POST[ 'name' ] ) || ( empty( $_POST[ 'password' ] ) || ( empty( $_POST[ 'server' ] ))
  4. echo utf8_decode( "<font color='red'>Ningún casillero puede quedar vacío!</font><br />" );
  5.  
  6.  
  7. else
  8. {
  9. if( empty( $_POST[ 'vencimiento' ] ) )
  10. $vencimiento = 0;
  11. else
  12. $vencimiento = time( ) + ( intval( $_POST[ 'vencimiento' ] ) * 86400 );
  13.  
  14. mysql_query( "INSERT INTO admins ( Name, Password, Flag, Vencimiento, Server, staff, UltimoEdit ) VALUES ( '" . $_POST[ 'tag' ] . "', '" . $_POST[ 'pass' ] . "', '" . $_POST[ 'flag' ] . "', '" . $vencimiento . "','" . $_POST[ 'Server' ] . "','" . $_POST[ 'Staff' ] . "')" );
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement