forked from supertuxkart/stk-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stkaddons] Commit all changes to addons website to-date
* Change password storage from MD5 to SHA256 * Add news message support * Begin overhaul of user and addon display code * Add addon attributes * Add extensive validation to uploaded addon files
- Loading branch information
stephenjust
committed
Mar 30, 2011
1 parent
b3d342c
commit c3bf3e0
Showing
64 changed files
with
4,694 additions
and
2,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
xapantu | ||
sj04736 | ||
|
||
== Translation s== | ||
== Translations == | ||
asciimonster | ||
norcal | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
<?php | ||
/* copyright 2009 Lucas Baudin <[email protected]> | ||
This file is part of stkaddons. | ||
stkaddons 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 3 of the License, or (at your | ||
option) any later version. | ||
stkaddons is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
more details. | ||
You should have received a copy of the GNU General Public License along with | ||
stkaddons. If not, see <http://www.gnu.org/licenses/>. */ | ||
/** | ||
* copyright 2009 Lucas Baudin <[email protected]> | ||
* | ||
* This file is part of stkaddons | ||
* | ||
* stkaddons 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 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* stkaddons is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with stkaddons. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
?> | ||
<?php | ||
/*************************************************************************** | ||
|
@@ -26,62 +28,40 @@ | |
Description: people | ||
***************************************************************************/ | ||
$security = "basicPage"; | ||
include("include/security.php"); | ||
$security = 'basicPage'; | ||
define('ROOT','./'); | ||
include('include.php'); | ||
|
||
$title = "SuperTuxKart Add-ons | Users"; | ||
include("include/top.php"); | ||
$_GET['title'] = (isset($_GET['title'])) ? $_GET['title'] : NULL; | ||
|
||
$title = _('SuperTuxKart Add-ons').' | '._('Users'); | ||
include('include/top.php'); | ||
?> | ||
</head> | ||
<body> | ||
<?php | ||
include("menu.php"); | ||
?> | ||
<div id="select-addons"> | ||
<div id="select-addons_top"> | ||
</div> | ||
<div id="select-addons_center"> | ||
<?php | ||
$js = ""; | ||
loadUsers(); | ||
?> | ||
</div> | ||
<div id="select-addons_bottom"> | ||
</div></div> | ||
<div id="disAddon_content"> | ||
<div id="disAddon"></div></div> | ||
<?php | ||
echo '<script type="text/javascript">'; | ||
echo $js; | ||
echo '</script>'; | ||
include("include/footer.php"); ?> | ||
</body> | ||
</html> | ||
</head> | ||
<body> | ||
<?php | ||
include(ROOT.'include/menu.php'); | ||
?> | ||
<div id="select-addons"> | ||
<div id="select-addons_top"> | ||
</div> | ||
<div id="select-addons_center"> | ||
<?php | ||
function loadUsers() | ||
{ | ||
global $style, $js; | ||
$addonLoader = new coreUser('users'); | ||
$addonLoader->loadAll(); | ||
echo '<ul id="list-addons">'; | ||
?> | ||
<li> | ||
<a class="menu-addons" href="javascript:loadAddon(<?php echo $_SESSION['id']; ?>,'user.php')"> | ||
<img class="icon" src="image/<?php echo $style; ?>/user.png" /> | ||
Me | ||
</a> | ||
</li> | ||
<?php | ||
while($addonLoader->next()) | ||
{ | ||
echo '<li><a class="menu-addons'; | ||
if($addonLoader->addonCurrent['available'] == 0) echo ' unavailable'; | ||
echo '" href="javascript:loadAddon('.$addonLoader->addonCurrent['id'].',\'user.php\')">'; | ||
echo '<img class="icon" src="image/'.$style.'/user.png" />'; | ||
echo $addonLoader->addonCurrent['login']."</a></li>"; | ||
if($addonLoader->addonCurrent['login'] == $_GET['title']) $js.= 'loadAddon('.$addonLoader->addonCurrent['id'].',\'user.php\')'; | ||
} | ||
echo "</ul>"; | ||
|
||
} | ||
$js = ""; | ||
loadUsers(); | ||
?> | ||
</div> | ||
<div id="select-addons_bottom"> | ||
</div></div> | ||
<div id="content-addon"> | ||
<div id="content-addon_top"></div> | ||
<div id="content-addon_body"></div> | ||
<div id="content-addon_bottom"></div> | ||
</div> | ||
<?php | ||
echo '<script type="text/javascript">'; | ||
echo $js; | ||
echo '</script>'; | ||
include("include/footer.php"); ?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.