forked from atkphpframework/achievo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlicense.php
More file actions
30 lines (24 loc) · 821 Bytes
/
license.php
File metadata and controls
30 lines (24 loc) · 821 Bytes
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
<?php
$config_atkroot = "./";
include_once("atk.inc");
atksession();
atksecure();
require "theme.inc";
$page = &atkinstance("atk.ui.atkpage");
$ui = &atkinstance("atk.ui.atkui");
$theme = &atkTheme::getInstance();
$output = &atkOutput::getInstance();
$page->register_style($theme->stylePath("style.css"));
$license = file("doc/LICENSE");
$tmp_output="";
for ($i=0;$i<count($license);$i++)
{
$tmp_output.='<br>'.str_replace("", "", $license[$i]);
}
$title = atkText('title_license');
$box = $ui->renderBox(array("title"=>atkText("title_license"), "content"=>$tmp_output));
$actionpage = $ui->render("actionpage.tpl", array("blocks"=>array($box), "title"=>$title));
$page->addContent($actionpage);
$output->output($page->render($title, true));
$output->outputFlush();
?>