Don't cache ghost-ban announcement pages
This commit is contained in:
		
							parent
							
								
									efdc903263
								
							
						
					
					
						commit
						a1e67e97b7
					
				| @ -153,12 +153,14 @@ class IPBan extends Extension | |||||||
|                 $b = new Block(null, $msg, "main", 0); |                 $b = new Block(null, $msg, "main", 0); | ||||||
|                 $b->is_content = false; |                 $b->is_content = false; | ||||||
|                 $page->add_block($b); |                 $page->add_block($b); | ||||||
|  |                 $page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/"); | ||||||
|                 $event->user->class = $_shm_user_classes["ghost"]; |                 $event->user->class = $_shm_user_classes["ghost"]; | ||||||
|             } elseif ($row["mode"] == "anon-ghost") { |             } elseif ($row["mode"] == "anon-ghost") { | ||||||
|                 if ($event->user->is_anonymous()) { |                 if ($event->user->is_anonymous()) { | ||||||
|                     $b = new Block(null, $msg, "main", 0); |                     $b = new Block(null, $msg, "main", 0); | ||||||
|                     $b->is_content = false; |                     $b->is_content = false; | ||||||
|                     $page->add_block($b); |                     $page->add_block($b); | ||||||
|  |                     $page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/"); | ||||||
|                     $event->user->class = $_shm_user_classes["ghost"]; |                     $event->user->class = $_shm_user_classes["ghost"]; | ||||||
|                 } |                 } | ||||||
|             } else { |             } else { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user