summaryrefslogblamecommitdiffstats
path: root/apis/init.inc.php
blob: e0dcf707c701e57be3b2a1a126b61902a0363db9 (plain) (tree)
1
2
3
4
5
6
7
8

     


                                                 
                        

                





                                                                         
                      
<?php

// via cron:
// @reboot   www-data   php /path/to/api.php init

if (!isLocalExecution())
	exit(0);

if (($report = Request::get('crashreport', false, 'string')) !== false) {
	$details = file_get_contents($report);
	EventLog::failure('Problems during bootup hook', $details);
	exit(0);
}

Event::systemBooted();