| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (!file_exists("config.php")) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2020-05-23 17:03:08 +02:00
										 |  |  |   require_once("template.php"); | 
					
						
							| 
									
										
										
										
											2018-01-18 22:57:12 +01:00
										 |  |  |   require_once("install.php"); | 
					
						
							| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  | } | 
					
						
							|  |  |  | else{ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-18 22:57:12 +01:00
										 |  |  | require_once("config.php"); | 
					
						
							| 
									
										
										
										
											2020-05-23 17:03:08 +02:00
										 |  |  | require_once("template.php"); | 
					
						
							| 
									
										
										
										
											2018-01-18 22:57:12 +01:00
										 |  |  | require_once("classes/constellation.php"); | 
					
						
							| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | $offset = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (isset($_GET['ajax'])) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   $constellation->render_incidents(false,$_GET['offset'],5); | 
					
						
							|  |  |  |   exit(); | 
					
						
							|  |  |  | }else if (isset($_GET['offset'])) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   $offset = $_GET['offset']; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-07 20:39:10 +01:00
										 |  |  | Template::render_header("Status"); | 
					
						
							| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  | ?>
 | 
					
						
							|  |  |  |     <div class="text-center"> | 
					
						
							| 
									
										
										
										
											2017-12-31 02:26:04 +01:00
										 |  |  |       <h2><?php echo _("Current status");?></h2>
 | 
					
						
							| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  |     </div> | 
					
						
							|  |  |  |     <div id="current"> | 
					
						
							|  |  |  |     <?php $constellation->render_status();?>  
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <?php if ($mysqli->query("SELECT count(*) FROM status")->num_rows) | 
					
						
							|  |  |  | {       | 
					
						
							|  |  |  |   ?>
 | 
					
						
							|  |  |  |       <div id="timeline"> | 
					
						
							|  |  |  |         <div class="item"> | 
					
						
							|  |  |  |           <div class="timeline"> | 
					
						
							|  |  |  |             <div class="line text-muted"></div> | 
					
						
							|  |  |  |             <?php | 
					
						
							|  |  |  |             $constellation->render_incidents(true,$offset); | 
					
						
							|  |  |  |             $constellation->render_incidents(false,$offset); | 
					
						
							|  |  |  |             ?>
 | 
					
						
							|  |  |  |           </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | <?php }  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-07 20:39:10 +01:00
										 |  |  | Template::render_footer(); | 
					
						
							| 
									
										
										
										
											2017-11-24 00:09:36 +01:00
										 |  |  | } |