Skip to content

Commit d058fdb

Browse files
committed
Merge pull request #50 from ARMmaster17/dev
Dev
2 parents 944ce4f + c73160b commit d058fdb

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

admin/modules/phpinfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
phpinfo();
3+
?>

bio.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<body>
3+
<?php
4+
$author = simplexml_load_file('persons/' . $_GET['u'] . '.xml');
5+
echo $author->data[0]->name;
6+
echo '<hr>'
7+
echo $author->data[0]->bio;
8+
?>
9+
</body>
10+
</html>

dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
echo '<br /><br />';
3636
//start admin content
3737
echo "<table border=\"1\" style=\"width:100%\">";
38-
$dir = $cf_rooturl . "/admin/modules/";
38+
$dir = "admin/modules/";
3939
$dh = opendir($dir);
4040
while (false !== ($filename = readdir($dh)))
4141
{

persons/admin.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<person>
2+
<data>
3+
<name>Admin</name>
4+
<bio>
5+
Admin is the default user. He should not be used for normal day-to-day use. He is the owner of the site.
6+
</bio>
7+
</data>
8+
</person>

0 commit comments

Comments
 (0)