forked from vstativ/eset_mirror_script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.php
46 lines (33 loc) · 805 Bytes
/
update.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
require __DIR__ . "/inc/init.php";
try {
Log::init();
Language::init();
if (SelfUpdate::init()) {
spl_autoload_unregister($autoload);
unset($autoload);
require __DIR__ . "/inc/init.php";
}
Config::init();
Language::init();
@ini_set('memory_limit', Config::get('SCRIPT')['memory_limit']);
$nod32ms = new Nod32ms();
}
catch (ToolsException $e) {
Log::write_log($e->getMessage(), 0);
}
catch (ConfigException $e) {
Log::write_log($e->getMessage(), 0);
}
catch (SelfUpdateException $e) {
Log::write_log($e->getMessage(), 0);
}
catch (phpmailerException $e) {
Log::write_log($e->getMessage(), 0);
}
catch (Exception $e) {
Log::write_log($e->getMessage(), 0);
}
finally {
Log::write_log("Script stopped!", 0);
}