#   
 
 # - - - - - [   A D D   S Q L   ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
 
 # 
 
 	 	 $ D B _ s i t e - > q u e r y ( " D R O P   T A B L E   I F   E X I S T S   "   .   T A B L E _ P R E F I X   .   " a w a r d ; " ) ; 
 
 	 	 $ D B _ s i t e - > q u e r y ( " C R E A T E   T A B L E   "   .   T A B L E _ P R E F I X   .   " a w a r d   ( 
 
 	 	 	     a w a r d _ i d   s m a l l i n t ( 5 )   u n s i g n e d   N O T   N U L L   a u t o _ i n c r e m e n t , 
 
 	 	 	     a w a r d _ c a t _ i d   s m a l l i n t ( 5 )   N O T   N U L L   d e f a u l t   ' 1 ' , 
 
 	 	 	     a w a r d _ n a m e   v a r c h a r ( 5 0 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     a w a r d _ d e s c   v a r c h a r ( 2 5 0 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     a w a r d _ i c o n _ u r l   v a r c h a r ( 2 5 0 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     a w a r d _ i m g _ u r l   v a r c h a r ( 2 2 5 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     a w a r d _ d i s p l a y o r d e r   s m a l l i n t ( 5 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
 	 	 	     P R I M A R Y   K E Y     ( a w a r d _ i d ) 
 
 	 	 	 )   T Y P E = M y I S A M ; 
 
 	 	 " ) ; 
 
 
 
 	 	 $ D B _ s i t e - > q u e r y ( " D R O P   T A B L E   I F   E X I S T S   "   .   T A B L E _ P R E F I X   .   " a w a r d _ u s e r ; " ) ; 
 
 	 	 $ D B _ s i t e - > q u e r y ( " C R E A T E   T A B L E   "   .   T A B L E _ P R E F I X   .   " a w a r d _ u s e r   ( 
 
 	 	 	     i s s u e _ i d   s m a l l i n t ( 5 )   N O T   N U L L   a u t o _ i n c r e m e n t , 
 
 	 	 	     a w a r d _ i d   s m a l l i n t ( 5 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
 	 	 	     u s e r i d   i n t ( 1 0 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
 	 	 	     i s s u e _ r e a s o n   v a r c h a r ( 2 5 5 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     i s s u e _ t i m e   i n t ( 1 0 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
 	 	 	     P R I M A R Y   K E Y     ( i s s u e _ i d ) 
 
 	 	 	 )   T Y P E = M y I S A M ; 
 
 	 	 " ) ; 
 
 
 
 	 	 $ D B _ s i t e - > q u e r y ( " D R O P   T A B L E   I F   E X I S T S   "   .   T A B L E _ P R E F I X   .   " a w a r d _ c a t ; " ) ; 
 
 	 	 $ D B _ s i t e - > q u e r y ( " 
 
 	 	 	 C R E A T E   T A B L E   "   .   T A B L E _ P R E F I X   .   " a w a r d _ c a t   ( 
 
 	 	 	     ` a w a r d _ c a t _ i d `   m e d i u m i n t ( 8 )   u n s i g n e d   N O T   N U L L   a u t o _ i n c r e m e n t , 
 
 	 	 	     ` a w a r d _ c a t _ t i t l e `   v a r c h a r ( 1 0 0 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     ` a w a r d _ c a t _ d e s c `   v a r c h a r ( 2 5 0 )   N O T   N U L L   d e f a u l t   ' ' , 
 
 	 	 	     ` a w a r d _ c a t _ d i s p l a y o r d e r `   m e d i u m i n t ( 8 )   u n s i g n e d   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
 	 	 	     ` a w a r d _ c a t _ p a r e n t i d `   m e d i u m i n t ( 8 )   N O T   N U L L   d e f a u l t   ' - 1 ' , 
 
 	 	 	     P R I M A R Y   K E Y     ( ` a w a r d _ c a t _ i d ` ) , 
 
 	 	 	     K E Y   ` a w a r d _ c a t _ o r d e r `   ( ` a w a r d _ c a t _ d i s p l a y o r d e r ` ) 
 
 	 	 	 )   T Y P E = M y I S A M ; 
 
 	 	 " ) ; 
 
 	 	 $ D B _ s i t e - > q u e r y ( " I N S E R T   I N T O   "   .   T A B L E _ P R E F I X   .   " a w a r d _ c a t   V A L U E S   ( 1 ,   ' D e f a u l t ' ,   ' ' ,   1 ,   - 1 ) ; " ) ; 
 
 
 
 #   
 
 #   - - - - - - - - - - - - - - -   P h r a s e s   t o   A D D   - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 # 
 
 i n s e r t _ p h r a s e ( ' d e l e t e d _ a w a r d _ s u c c e s s f u l l y     ' ,   ' D e l e t e d   A w a r d   S u c c e s s f u l l y     ' ,   ' 9 0 0 0 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' i n v a l i d _ a w a r d _ n a m e _ s p e c i f i e d   ' ,   ' I n v a l i d   A w a r d   N a m e   S p e c i f i e d   ' ,   ' 9 0 0 0 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' n o _ a w a r d s _ d e f i n e d   ' ,   ' T h e r e   a r e   n o   a w a r d s   d e f i n e d   ' ,   ' 9 0 0 0 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' s a v e d _ a w a r d _ n a m e d _ x _ s u c c e s s f u l l y   ' ,   ' S a v e d   A w a r d   N a m e d   { 1 }   S u c c e s s f u l l y   ' ,   ' 9 0 0 0 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a d d _ n e w _ a w a r d   ' ,   ' A d d   N e w   A w a r d   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a d d _ n e w _ a w a r d _ c a t e g o r y   ' ,   ' A d d   n e w   A w a r d   c a t e g o r y   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ c a t _ m a n a g e r   ' ,   ' A w a r d   C a t e g o r y   M a n a g e r   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ m a n a g e r   ' ,   ' A w a r d   M a n a g e r   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a r e _ y o u _ s u r e _ y o u _ w a n t _ t o _ d e l e t e _ t h e _ a w a r d _ c a t e g o r y _ c a l l e d _ x   ' ,   ' A r e   y o u   s u r e   y o u   w a n t   t o   d e l e t e   t h e   A w a r d   c a t e g o r y   c a l l e d :   ' { 1 } ' ? < b r   / > < b r   / > D e l e t e   a l l   A w a r d s   f r o m   t h i s   c a t e g o r y ?   Y e s < i n p u t   t y p e = " r a d i o "   n a m e = " d e l e t e i t e m s "   v a l u e = " 1 "   / >   N o < i n p u t   t y p e = " r a d i o "   n a m e = " d e l e t e i t e m s "   v a l u e = " 0 "   c h e c k e d = " c h e c k e d "   / > < b r   / > < b r   / >   I f   y o u   d o   n o t   w a n t   t o   d e l e t e   a l l   A w a r d s   f r o m   t h i s   c a t e g o r y ,   t h e y   w i l l   a l l   b e   m o v e d   t o   t h e   c a t e g o r y   s e l e c t e d   b e l o w . < b r   / > < b r   / >   D e s t i n a t i o n   C a t e g o r y :   < s e l e c t   n a m e = " d e s t i n a t i o n i d " > \ n { 2 } \ t \ t < / s e l e c t > < b r   / > < b r   / >   I f   y o u   s e l e c t   " N o   o n e " ,   t h e   a w a r d s   w i l l   b e   U n - c l a s s i f i e d   a n d   w i l l   n o t   s h o w   i n   p u b l i c .   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a r e _ y o u _ s u r e _ y o u _ w a n t _ t o _ d e l e t e _ t h i s _ a w a r d   ' ,   ' A r e   y o u   s u r e   y o u   w a n t   t o   d e l e t e   t h i s   A w a r d ?   T h i s   a c t i o n   c a n   n o t   b e   u n - d o n e .   ' ,   ' 2 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ c a t _ p a r e n t   ' ,   ' P a r e n t   C a t e g o r y   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ c a t _ t i t l e   ' ,   ' A w a r d   c a t e g o r y   t i t l e   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ c a t e g o r y   ' ,   ' A w a r d   C a t e g o r y   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ d e s c r i p t i o n   ' ,   ' A w a r d   D e s c r i p t i o n   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ i c o n   ' ,   ' A w a r d   I c o n   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ i c o n _ u r l   ' ,   ' A w a r d   I c o n   U R L   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ i m a g e   ' ,   ' A w a r d   I m a g e   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ i m a g e _ u r l   ' ,   ' A w a r d   I m a g e   U R L   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ i n f o r m a t i o n   ' ,   ' A w a r d   I n f o r m a t i o n   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ n a m e   ' ,   ' A w a r d   N a m e   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ r e a s o n   ' ,   ' I s s u e   r e a s o n   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ s h o w c a s e   ' ,   ' A w a r d   S h o w c a s e   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d _ t i m e   ' ,   ' I s s u e   t i m e   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' a w a r d s   ' ,   ' A w a r d s   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' n o _ a w a r d _ u s e r s   ' ,   ' N o   m e m b e r   h a s   t h i s   a w a r d   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' n o _ a w a r d s _ i n _ t h i s _ c a t e g o r y   ' ,   ' T h e r e   a r e   n o   a w a r d s   i n   t h i s   c a t e g o r y .   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' r e q u e s t _ a w a r d   ' ,   ' R e q u e s t   A w a r d   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' s h o w _ a l l _ a w a r d s   ' ,   ' S h o w   a l l   a w a r d s   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' u n c l a s s i f i e d _ a w a r d s   ' ,   ' U n - c l a s s i f i e d   A w a r d s   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' u s e r _ a w a r d s   ' ,   ' U s e r   A w a r d s   ' ,   ' 1 ' ) ; 
 
 i n s e r t _ p h r a s e ( ' u s e r s _ w i t h _ a w a r d s   ' ,   ' U s e r s   W h o   H a v e   A l r e a d y   R e c i e v e d   A w a r d s ' ,   ' 1 ' ) ; 
 
 
 
 T A B L E   a w a r d _ c a t / a w a r d _ c a t _ o r d e r   = >   a w a r d _ c a t _ d i s p l a y o r d e r 
 
 #   
 
 #   - - - - - - - - - - - - - - -   T e m p l a t e s   t o   A D D   - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 # 
 
 	 ' A W A R D S ' , 
 
 	 ' a w a r d s _ a w a r d b i t ' , 
 
 	 ' a w a r d s _ a w a r d u s e r s _ b i t ' , 
 
 	 ' a w a r d s _ b i t ' , 
 
 	 ' a w a r d s _ u s e r a w a r d s _ b i t ' , 
 
 	 ' a w a r d s _ c a t e g o r y ' , 
 
 	 ' a w a r d s _ c a t e g o r y b i t ' 
 
 
 
 #   
 
 #   - - - - - - - - - - - - - - -   T e m p l a t e s   t o   E D I T :   - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 # 	 
 
 
 
 	 ' M E M B E R I N F O ' , 
 
 	 ' p o s t b i t ' , 
 
 	 ' p o s t b i t _ l e g a c y ' 
 
 
 
 #   
 
 #   - - - - - - - - - - - - - - -   F i l e s   t o   E D I T :   - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 # 	 
 
 	 / a d m i n c p / i n d e x . p h p 
 
 	 m e m b e r . p h p 
 
 	 s h o w t h r e a d . p h p 
 
 	 s h o w p o s t . p h p 
 
 	 a n n o u n c e m e n t . p h p 
 
 	 p r i v a t e . p h p 
 
 
 
 
 
 
 
 / /   # # # # # # # # # # # # # # # # # # # # #   T e m p l a t e   C o n t e n t   # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 