Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ____ _
- // | _ \ | |
- // ___| |_) | ___ __ _ _ __ __| |
- // |_ / _ < / _ \ / _` | '__/ _` |
- // / /| |_) | (_) | (_| | | | (_| |
- // /___|____/ \___/ \__,_|_| \__,_|
- // zBoard Nyche Forest
- /// Require Engine and set header ///
- require "lib/zboard.php";
- require "lib/common.php";
- $action=$_GET[action];
- $forestpage=array();
- $forestpage['explore']=array();
- $forestpage['explore']['id']=1;
- $forestpage['explore']['title']=array("Nyche Forest"=>"AFFABE","Temple of SpaceTime"=>"33EDCB");
- $forestpage['explore']['description']=array("Nyche Forest"=>"Where paradoxes go to die. Creatures from all across the universe end up here through rifts in the fabric of time and space. ","Temple of SpaceTime"=>"The Temple of SpaceTime is where the most skilled Hexad Warriors go to discover the secrets of the Craitial Realm.");
- $forestpage['explore']['prizes']=array("Nyche Forest"=>"/img/badges/grassbadge.png","Temple of SpaceTime"=>"/img/badges/ocarinabadge.png");
- $forestpage['explore']['area']=array("Nyche Forest"=>"1","Temple of SpaceTime"=>"2");
- $forestpage['pegasia']=array();
- $forestpage['pegasia']['id']=2;
- $forestpage['pegasia']['title']=array("Lamorey Heights"=>"F0C413","Draconian Mountain"=>"EE4444");
- $forestpage['pegasia']['description']=array("Lamorey Heights"=>"The biggest city in all of Pegasia and the hub of antiquarian pop culture. Demons, Goblins, Elves, and more!","Draconian Mountain"=>"An inactive volcano now inhabited by the Draconian Reptile Civilization. They are very protective of their land.");
- $forestpage['pegasia']['prizes']=array("Lamorey Heights"=>"/img/badges/mapbadge.png","Draconian Mountain"=>"/img/badges/firebadge.png");
- $forestpage['pegasia']['area']=array("Lamorey Heights"=>"3","Draconian Mountain"=>"4");
- $portals=array();
- foreach($forestpage as $section){
- foreach($section['title'] as $title => $colour){
- $portals[$section['id']].="$L[TR]>$L[TD1]><a href=forest.php?action=explore&id=".$section['area'][$title]." style='color:#".$colour.";font-weight:bold;'>".$title."</span></td>$L[TD1]>".$section['description'][$title]."</td>$L[TD1]><img src=".$section['prizes'][$title]." float=center;></td></td>";
- }
- }
- $users=$sql->query("SELECT * FROM users "
- ."WHERE lastview>".(ctime()-$time)." $hiddencheck"
- ."ORDER BY lastview DESC");
- $users=$sql->query('SELECT *,'.sqlexp().' '
- .'FROM users u '
- .'LEFT JOIN usersrpg r ON u.id=r.id '
- .'WHERE lastact>'.(ctime()-30).' '
- // .'WHERE lastview>'.(ctime()-86400).' '
- .'ORDER BY exp DESC');
- pageheader('Nyche Forest');
- $cat=$_GET['cat'];
- checknumeric($cat);
- $f=fopen("shop-ref.log","a");
- fwrite($f,"[".date("m-d-y H:i:s")."] ".$ref."\n");
- fclose($f);
- if(!$log){
- print "$L[TBL1]>
- ". " $L[TD1c]>
- ". " You must be logged in to access the Nyche Forest<br>
- ". " <a href=./>Back to main</a> or <a href=login.php>login</a>
- ". "$L[TBLend]
- ";
- }elseif($loguser['power']==-1){
- print "$L[TBL1]>
- ". " $L[TD1c]>
- ". " Banned users may not use the Nyche Forest<br>
- ". " <a href=./>Back to main</a> or <a href=login.php>login</a>
- ". "$L[TBLend]
- ";
- }elseif (($_GET['action']=='edit'||$_GET['action']=='save'||$_GET['action']=='delete')&&!isadmin()) { //Added (Sukasa)
- print "$L[TBL1]>
- ". " $L[TD1c]>
- ". " Your level is not high enough to enter the forest.<br>
- ". " <a href=./>Back to main</a>
- ". "$L[TBLend]
- ";
- }else {
- $user=$sql->fetchq('SELECT u.name, u.posts, u.regdate, r.* '
- .'FROM users u '
- .'LEFT JOIN usersrpg r ON u.id=r.id '
- ."WHERE u.id=$loguser[id]");
- $p=$user['posts'];
- $d=(ctime()-$user['regdate'])/86400;
- $st=getstats($user);
- $GP=$st['GP'];
- }
- print("$L[TBL1]>
- $L[TBL1]>
- $L[TRh]>$L[TDh]>Nyche Forest Entrance</td></tr>
- $L[TR]>$L[TD1]><p><img src=/img/duckinator.png style=float:left; margin:0px 15px 15px 0px; />You have entered the Nyche Forest, the Duckinator <font class=sfont>TM</font> is a special time machine that allows you to explore other areas across the zQuest Universe.<br style=clear: both; />More experienced users may explore deeper beyond the zQuest Universe into other realities.</p></table>
- $L[TBL1]>
- $L[TRg]> <!-- TRg is a secondary heading. -->
- $L[TD] width=15%>Local</td>$L[TD]>Description</td>$L[TD] width=3%>Prize</td>
- </tr>
- $portals[1]
- $L[TRg]>
- <br>
- $L[TBL1]>
- $L[TRg]>
- $L[TD] width=15%>Pegasia</td>$L[TD]>Description</td>$L[TD]width=3%>Prize</td>
- </tr>
- $portals[2]
- $L[TRg]>
- <br>
- $L[TBL1]>
- </td></tr></table>");
- print "
- ". "<br>
- ". "<img src=gfx/status.php?u=$loguser[id]>
- ";
- switch($action){
- case 'explore':
- checknumeric($_GET[id]);
- $area=$sql->fetchq("SELECT * FROM monsters WHERE location='$_GET[id]' ORDER BY rand() LIMIT 1");
- print "$L[TBL1]>
- ". "$L[TD1c]><a href=forest.php>Return to Nyche Forest</a>
- ". "$L[TBLend] <br>
- ". "<br>
- ". "$L[TBL1]>
- ". " $L[TRh] align=left>
- ". " $L[TDh] colspan=9>$area[name]</td>
- ". "$L[TBL2]>
- ". "$L[TR]>$L[TD1]> $area[desc] <br>HP - $area[hp]<br>ATK - $area[atk]<br>DEF - $area[def]</td>
- ". "$L[TBLend]
- ". "<br>
- ". "<img src=gfx/status.php?u=$loguser[id]><br>
- ";
- break;
- default;
- }
- pagefooter();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement