PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/armory/source/main.php

https://bitbucket.org/ekynox/tcweb1
PHP | 47 lines | 45 code | 2 blank | 0 comment | 2 complexity | 5e4b0574f590404790a44796fdc3d5f4 MD5 | raw file
 1<?php
 2if(!defined("Armory"))
 3{
 4	header("Location: ../error.php");
 5	exit();
 6}
 7?>
 8<script type="text/javascript">
 9	document.getElementById('divChains').className="top-anchor";
10</script>
11<div class="index">
12<p class="dragon"></p>
13<p class="stars2"></p>
14<div class="armory-bg">
15<script type="text/javascript">
16	document.getElementById('indexChange1').className="home";
17</script>
18</div>
19<?php
20if($news)
21{
22?>
23<div class="armory-news">
24<div id="rDivNews"></div>
25</div>
26<script type="text/javascript">
27var blah = new Array(); var i = 0;
28<?php
29	foreach($news as $value)
30		echo "	blah[i] = \"<h1>",$value[0],"</h1> ",$value[1],"\"; i++;\n";
31?>
32	i = Math.round(Math.random()*100)%i;
33	document.getElementById('rDivNews').innerHTML = blah[i];
34</script>
35<?php
36}
37?>
38<script type="text/javascript">
39	rightSideImage = "general";
40	changeRightSideImage(rightSideImage);
41
42function setArmorySearchFocus() {
43document.formSearch.armorySearch.focus();
44}
45
46window.onload = setArmorySearchFocus;
47</script>