@@ -134,7 +134,7 @@ public function handle($name = '')
134134 */
135135 private function table ($ name )
136136 {
137- if ($ name == 'pastebin ' )
137+ if ($ name == 'pastebin ' )
138138 {
139139 return $ this ->pastebin_table ;
140140 }
@@ -158,7 +158,7 @@ private function display_pb()
158158 $ snippet_id = $ this ->request ->variable ('s ' , 0 );
159159 $ submit = isset ($ _POST ['submit ' ]) ? true : false ;
160160
161- if (in_array ($ mode , array ('view ' , 'download ' , 'moderate ' )))
161+ if (in_array ($ mode , array ('view ' , 'download ' , 'moderate ' )))
162162 {
163163 // for all of these we have to check if the entry exists
164164
@@ -230,7 +230,6 @@ private function display_pb()
230230 'S_AUTH_POST ' => ($ auth ->acl_get ('u_pastebin_post ' )) ? true : false ,
231231 ));
232232
233-
234233 // Now let's decide what to do
235234 switch ($ mode )
236235 {
@@ -255,7 +254,7 @@ private function display_pb()
255254 'snippet_prune_on ' => max (1 , min (6 , $ this ->request ->variable ('pruning_months ' , 0 ))),
256255 );
257256
258- if ($ this ->auth ->acl_get ('u_pastebin_post_notlim ' ) && $ this ->request ->variable ('pruning_months ' ,0 ) == -1 )
257+ if ($ this ->auth ->acl_get ('u_pastebin_post_notlim ' ) && $ this ->request ->variable ('pruning_months ' ,0 ) == -1 )
259258 {
260259 //Infinite Time...
261260 $ data ['snippet_prunable ' ] = 0 ;
@@ -298,7 +297,7 @@ private function display_pb()
298297 $ error [] = $ user ->lang ['ERR_NO_BODY ' ];
299298 }
300299
301- if (!check_form_key ('pastebinform ' ))
300+ if (!check_form_key ('pastebinform ' ))
302301 {
303302 $ error [] = $ user ->lang ['FORM_INVALID ' ];
304303 }
@@ -363,11 +362,6 @@ private function display_pb()
363362 case 'view ' :
364363 case 'download ' :
365364 case 'moderate ' :
366-
367-
368-
369-
370-
371365 if ($ mode == 'view ' )
372366 {
373367 if (!$ auth ->acl_get ('u_pastebin_view ' ))
@@ -504,7 +498,7 @@ private function display_pb()
504498 $ redirect_append = array ();
505499 }
506500 }
507- else if ($ auth_edit )
501+ else if ($ auth_edit )
508502 {
509503 $ snippet ->load_from_array (array (
510504 'snippet_prunable ' => (int ) $ prunable ,
@@ -547,7 +541,7 @@ private function display_pb()
547541 $ confirm_image = '' ;
548542 if (!$ auth ->acl_get ('u_pastebin_post_novc ' ))
549543 {
550- if (!isset ($ captcha ))
544+ if (!isset ($ captcha ))
551545 {
552546 $ captcha = $ this ->captcha_factory ->get_instance ($ this ->config ['captcha_plugin ' ]);
553547 $ captcha ->init ($ this ::CONFIRM_PASTEBIN );
@@ -575,9 +569,9 @@ private function display_pb()
575569 }
576570
577571 //Allow infinite storage if it is already set and we are editing, or if the user is allowed to
578- if ((isset ($ data ['snippet_prunable ' ]) && !$ data ['snippet_prunable ' ]) || $ this ->auth ->acl_get ('u_pastebin_post_notlim ' ))
572+ if ((isset ($ data ['snippet_prunable ' ]) && !$ data ['snippet_prunable ' ]) || $ this ->auth ->acl_get ('u_pastebin_post_notlim ' ))
579573 {
580- if (isset ($ data ['snippet_prunable ' ]))
574+ if (isset ($ data ['snippet_prunable ' ]))
581575 {
582576 $ selected = ($ data ['snippet_prunable ' ] == 0 || $ prune_month == -1 ) ? ' selected="selected" ' : '' ;
583577 }
@@ -588,7 +582,7 @@ private function display_pb()
588582 $ pruning_months_select .= '<option ' . $ selected . ' value="-1"> ' . $ this ->user ->lang ['INFINITE ' ] . '</option> ' ;
589583 }
590584
591- if (!isset ($ highlight ))
585+ if (!isset ($ highlight ))
592586 {
593587 $ highlight = isset ($ data ['snippet_highlight ' ]) ? $ data ['snippet_highlight ' ] : 'php ' ;
594588 }
0 commit comments