Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Addon Function */
- function checkhash( $hash ) {
- global $db;
- $f = $db->f( 'TABLE_NAME', 'hash', 'WHERE hash=?', $hash );
- return ( $f ) ? true : false;
- }
- function gethash() {
- $hash = randstr( 6 );
- if ( checkhash( $hash ) ) $hash = gethash();
- return $hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement