-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathartifact_process.php
executable file
·50 lines (43 loc) · 1.29 KB
/
artifact_process.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
47
48
49
50
<?php
// Galaxy
//
// The second line MUST be the name of the command that is to be shown in the command list.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2 of the License, or (at your
// option) any later version.
//
// File: artifact_process.php
include ("config/config.php");
include("languages/$langdir/lang_artifacts.inc");
get_post_ifset("artifact, process_type");
$template_object->enable_gzip = 0;
if (checklogin())
{
$template_object->enable_gzip = 0;
include ("footer.php");
die();
}
if($playerinfo['template'] == '' or !isset($playerinfo['template'])){
$templatename = $default_template;
}else{
$templatename = $playerinfo['template'];
}
include ("header.php");
$template_object->assign("templatename", $templatename);
$template_object->assign("title", $l_artifact_title);
if(!class_exists($artifact)){
include ("class/artifacts/" . $artifact . ".inc");
}
$artifacts_object = new $artifact();
if($process_type == "post")
{
echo $artifacts_object->postprocess_artifact($artifact);
}
else
{
echo $artifacts_object->preprocess_artifact($artifact);
}
include ("footer.php");
?>