Skip to content

Commit

Permalink
Remove php ending tag and remove old sql dependency in manage_panel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vampy committed Apr 30, 2014
1 parent 0994cfb commit 87e89d6
Show file tree
Hide file tree
Showing 56 changed files with 86 additions and 150 deletions.
2 changes: 0 additions & 2 deletions about.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@
));

echo $tpl;
?>

1 change: 0 additions & 1 deletion addons-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@
catch (Exception $e) {
echo '<span class="error">'.$e->getMessage().'</span><br />';
}
?>
1 change: 0 additions & 1 deletion addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,3 @@

echo $panels;
include("include/footer.php");
?>
2 changes: 0 additions & 2 deletions check_server_deps.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,3 @@
{
echo '<strong>GD Not Available.</strong><br />';
}

?>
1 change: 0 additions & 1 deletion download.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,3 @@
header('Location: http://downloads.tuxfamily.org/stkaddons/assets/'.$assetpath);
}
exit;
?>
1 change: 0 additions & 1 deletion error.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@
));

echo $tpl;
?>
4 changes: 0 additions & 4 deletions generate_xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@

$xml = writeAssetXML();
echo 'Asset xml written: '.$xml.'<br />';



?>
2 changes: 0 additions & 2 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@
define('ROOT','./');
include('include.php');
resizeImage($_GET['pic']);

?>
1 change: 0 additions & 1 deletion include.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
require_once(INCLUDE_DIR.'coreUser.php');
require_once(INCLUDE_DIR.'image.php');
require_once(INCLUDE_DIR.'xmlWrite.php');
?>
3 changes: 0 additions & 3 deletions include/AccessControl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,4 @@ public static function showAccessDeniedPage() {

exit;
}

}

?>
2 changes: 0 additions & 2 deletions include/Achievement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ public static function achieve($userid, $achievementid)
}
}
}

?>
1 change: 0 additions & 1 deletion include/Addon.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -990,4 +990,3 @@ public function setStatus($fields) {
Log::newEvent("Set status for add-on '{$this->name}'");
}
}
?>
2 changes: 0 additions & 2 deletions include/AddonViewer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,3 @@ function format_compat($format, $filetype) {
}
return htmlspecialchars(_('Unknown'));
}

?>
3 changes: 0 additions & 3 deletions include/Cache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,4 @@ private static function cachePrefix($size) {
return '25--';
return NULL;
}

}

?>
1 change: 0 additions & 1 deletion include/ClientSession.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,4 +839,3 @@ public function getAchievements($id = 0)
return Achievement::getAchievementsOf($id);
}
}
?>
1 change: 0 additions & 1 deletion include/ConfigManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ public static function set_config($config_name,$config_value) {
return true;
}
}
?>
1 change: 0 additions & 1 deletion include/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@
define('F_FEATURED',128);
define('F_LATEST',256);
define('F_TEX_NOT_POWER_OF_2',512);
?>
2 changes: 1 addition & 1 deletion include/DBConnection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ public function insert($table, array $fields_data)

$this->query($query, static::NOTHING, $prepared_pairs);
}
}
}
1 change: 0 additions & 1 deletion include/File.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,4 +737,3 @@ function cryptUrl($nbr)
}
return $str;
}
?>
2 changes: 0 additions & 2 deletions include/Friend.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,3 @@ public static function getFriendsAsXML($userid, $is_self = False)
return $partial_output->asString();
}
}

?>
1 change: 0 additions & 1 deletion include/Log.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,3 @@ public static function setAllEventsMailed() {
}
}
}
?>
1 change: 0 additions & 1 deletion include/Music.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,3 @@ private function populateById($id) {
}
}
}
?>
4 changes: 1 addition & 3 deletions include/News.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,4 @@ public static function delete($id) {
return false;
}
}
}

?>
}
2 changes: 0 additions & 2 deletions include/PanelInterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ public function __toString() {
return $content;
}
}

?>
1 change: 0 additions & 1 deletion include/Ratings.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,3 @@ public function getUserVotePercent() {
return intval(($this->user_vote / $num_possible_ratings) * 100);
}
}
?>
1 change: 0 additions & 1 deletion include/Report.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,3 @@ public function __toString()
return $return;
}
}
?>
1 change: 0 additions & 1 deletion include/SImage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,3 @@ public function scale($max_x,$max_y,$min_x = 1,$min_y = 1) {
}

class ImageException extends Exception {}
?>
2 changes: 0 additions & 2 deletions include/SLocale.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ private static function SetLocale($locale) {
define('LANG', $locale);
}
}

?>
1 change: 0 additions & 1 deletion include/SMail.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,3 @@ function moderator_email($subject, $message_html)
."\n--".$boundary."--\n";
mail($mail_address,$subject,$message,$header);
}
?>
2 changes: 0 additions & 2 deletions include/Server.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,3 @@ public static function getServersAsXML()
return $partial_output->asString();
}
}

?>
2 changes: 0 additions & 2 deletions include/StkTemplate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,3 @@ public function setMetaTag($key, $value) {
$this->meta_tags[$key] = $value;
}
}

?>
2 changes: 0 additions & 2 deletions include/Template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,3 @@ public static function getTemplateDir($template) {
class TemplateException extends Exception {

}

?>
2 changes: 0 additions & 2 deletions include/Upload.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,5 +424,3 @@ public function checkType() {
}

}

?>
1 change: 0 additions & 1 deletion include/Validate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,3 @@ public static function credentials($username, $password){

}
}
?>
1 change: 0 additions & 1 deletion include/Verification.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@ static function generate($userid){
return $verification_code;
}
}
?>
2 changes: 0 additions & 2 deletions include/XMLOutput.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,3 @@ public function asString() {
return $this->outputMemory();
}
}

?>
1 change: 0 additions & 1 deletion include/addRating.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@
}
echo '<div class="rating"><div class="emptystars">
</div><div class="fullstars" style="width: '.$rating->getAvgRatingPercent().'%;"></div></div><p>'.$numRatingsString.'</p>';
?>
2 changes: 0 additions & 2 deletions include/allow.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,3 @@ function setPermissions($role){
htmlspecialchars(_("moderator"));
htmlspecialchars(_("basicUser"));
}

?>
2 changes: 1 addition & 1 deletion include/coreUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,4 @@ public function permalink()
{
return 'users.php?user=' . $this->userCurrent['user'];
}
}
}
1 change: 0 additions & 1 deletion include/exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ class AddonException extends Exception {}
class FileException extends Exception {}
class UploadException extends Exception {}
class UserException extends Exception {}
?>
14 changes: 1 addition & 13 deletions include/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,7 @@
You should have received a copy of the GNU General Public License along with
stkaddons. If not, see <http://www.gnu.org/licenses/>. */
?>
<?php
/***************************************************************************
Project: STK Addon Manager
File: footer.php
Version: 1
Licence: GPLv3
Description: footer
***************************************************************************/

?>
</div>
<p style="font-size: small; color: #000000; text-align: center;">Site hosted by <a href="http://www.tuxfamily.org/">tuxfamily.org</a></p>
</body></html>
</body></html>
3 changes: 0 additions & 3 deletions include/graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,3 @@ function graph_data_to_json($values, $labels, $format, $graph_id) {
fclose($handle);
return $remote_cache_file;
}


?>
1 change: 0 additions & 1 deletion include/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@ function img_label($text)
}
return '<img src="'.$read_dir.'im_'.$text_noaccent.'.png'.'" alt="'.htmlentities($text).'" />';
}
?>
1 change: 0 additions & 1 deletion include/locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@

// Set the locale
new SLocale();
?>
3 changes: 0 additions & 3 deletions include/recaptchalib.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,3 @@ function recaptcha_mailhide_html($pubkey, $privkey, $email) {
"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);

}


?>
1 change: 0 additions & 1 deletion include/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ function stat_newest($addontype) {
return NULL;
}
}
?>
2 changes: 0 additions & 2 deletions include/xmlWrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,5 +361,3 @@ function writeFile($content, $file) {
fclose($fhandle);
return true;
}

?>
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@
$tpl->assign('news_messages', $news_messages);

echo $tpl;
?>
Loading

0 comments on commit 87e89d6

Please sign in to comment.