git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 6d3b040f authored by Luke Slater's avatar Luke Slater

Added full <?php tags to the top of all PHP scripts. Removed ?> tags from the...

Added full <?php tags to the top of all PHP scripts. Removed ?> tags from the end of all PHP scripts.
parent 6d423eaf
......@@ -91,4 +91,3 @@ $adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$data = $adodb->GetAll('SELECT email,status FROM Invitation_Request ORDER BY time ASC');
$smarty->assign('emails', $data);
$smarty->display('admin.tpl');
?>
......@@ -39,4 +39,3 @@ while (!$recordSet->EOF) {
$smarty->assign('entries', $aEntries);
$smarty->display('mbid-mismatch-report.tpl');
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/Album.php');
......@@ -64,5 +63,3 @@ if (isset($_POST['submit'])) {
}
}
$smarty->display('album-add.tpl');
?>
......@@ -52,5 +52,3 @@ $smarty->assign('extra_head_links', array(
$smarty->assign('headerfile', 'album-header.tpl');
$smarty->display('album.tpl');
?>
......@@ -49,5 +49,3 @@ class API {
return (XML::error('failed', $error, $this->api_error[$error]));
}
}
?>
......@@ -48,4 +48,3 @@ class AlbumXML {
}
}
?>
......@@ -130,5 +130,3 @@ class ArtistXML {
}
?>
......@@ -147,4 +147,3 @@ class TrackXML {
}
?>
......@@ -245,4 +245,3 @@ class UserXML {
}
?>
......@@ -41,4 +41,3 @@ function repamp($input) {
$input = str_replace('&', '&amp;', $input);
return($input);
}
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
......@@ -81,4 +80,3 @@ $smarty->assign('flattr_uid', $artist->flattr_uid);
$smarty->assign('pageheading', 'Managing ' . $artist->name);
$smarty->display("artist-manage.tpl");
?>
<?
<?php
/* GNU FM -- a free network service for sharing your music listening habits
Copyright (C) 2009 Free Software Foundation, Inc
......@@ -32,4 +32,3 @@ function artist_menu($artist, $active_page) {
return $submenu;
}
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
......@@ -64,4 +63,3 @@ $smarty->assign('submenu', $submenu);
$smarty->assign('headerfile', 'artist-header.tpl');
$smarty->display("artist-tag.tpl");
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
......@@ -79,4 +78,3 @@ $smarty->assign('submenu', $submenu);
$smarty->assign('headerfile', 'artist-header.tpl');
$smarty->display("artist.tpl");
?>
......@@ -46,4 +46,3 @@ if(isset($_COOKIE['session_id'])) {
$this_user = new User($username);
}
}
?>
......@@ -386,4 +386,3 @@ class Group {
}
}
......@@ -107,4 +107,3 @@ class Statistic {
}
}
}
?>
......@@ -97,4 +97,3 @@ class TagCloud {
return 'Scrobbles';
}
}
?>
......@@ -27,5 +27,3 @@ function sanitize($data) {
}
return $sane;
}
?>
......@@ -39,5 +39,3 @@ try {
function reportError($title, $msg) {
}
?>
......@@ -82,4 +82,3 @@ catch (exception $e) {
mail($email, $subject, $content, $headers);
$smarty->display('delete-profile.tpl');
}
?>
......@@ -173,4 +173,3 @@ else
$smarty->assign('details', 'Shall I call in a missing peoples report? This shouldn\'t happen.');
$smarty->display('error.tpl');
}
......@@ -38,5 +38,3 @@ if (!PEAR::isError ($aTopArtists)) {
}
$smarty->assign('explore', true);
$smarty->display('explore-artists.tpl');
?>
......@@ -101,4 +101,3 @@ require_once('data/Server.php');
// $smarty->display('error.tpl');
// }
?>
......@@ -27,4 +27,3 @@ require_once('data/Server.php');
$smarty->assign('headerfile', 'welcome-header.tpl');
$smarty->assign('welcome', true);
$smarty->display('welcome.tpl');
?>
......@@ -38,4 +38,3 @@ if(isset($station)) {
}
$smarty->assign('pageheading', 'Go ahead, listen all you want');
$smarty->display('listen.tpl');
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once($install_path . '/data/User.php');
......
......@@ -25,4 +25,3 @@ require_once('data/sanitize.php');
require_once('data/Server.php');
$smarty->display('popular-page.tpl');
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
......@@ -33,5 +32,3 @@ if ($aTagCloud) {
$smarty->display("popular.tpl");
?>
......@@ -48,5 +48,3 @@ $adodb->Execute('UPDATE Radio_Sessions SET url = ' . $adodb->qstr($url) . ' WHER
echo "response=OK\n";
echo "url=http://libre.fm\n"; // Need to parse the station request and give a real URL
echo "stationname=" . ($stationname) ."\n";
?>
......@@ -48,5 +48,3 @@ echo "info_message=\n";
echo "fingerprint_upload_url=http://this.is.broken.example.com/fingerprint/upload.php\n";
echo "permit_bootstrap=0\n";
echo "freetrial=0\n";
?>
......@@ -185,4 +185,3 @@ function get_artist_selection($artists, $artist=false) {
return $adodb->Execute('SELECT name, artist_name, album_name, duration, streamurl FROM Track WHERE streamable=1 AND ' . $artistsClause);
}
?>
......@@ -80,4 +80,3 @@ print $ser->getSerializedIndex($index);
if ($_GET['callback']) {
print ');';
}
......@@ -181,4 +181,3 @@ if(isset($_POST['register'])) {
$smarty->display('register.tpl');
}
?>
......@@ -46,4 +46,3 @@ if (isset($_POST['request'])) {
}
$smarty->display("request.tpl");
?>
......@@ -147,4 +147,3 @@ elseif (isset($_POST['user']) || isset($_POST['email'])) {
}
$smarty->display('reset.tpl');
?>
......@@ -50,4 +50,3 @@ $response = curl_exec($session);
echo $response;
curl_close($session);
?>
......@@ -37,5 +37,3 @@ $smarty->assign('search_type', $search_type);
$smarty->assign('results', $results);
$smarty->display("search.tpl");
?>
......@@ -19,7 +19,6 @@
*/
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
......@@ -47,4 +46,3 @@ try {
}
$smarty->display("tag.tpl");
?>
<?
<?php
require_once('database.php');
require_once('templating.php');
......@@ -24,4 +24,3 @@ try {
}
$smarty->display('tagcloud.tpl');
?>
......@@ -48,5 +48,3 @@ function uniqueid_to_username($uniqueid) {
return $username;
}
?>
......@@ -77,5 +77,3 @@ header('Content-Type: text/html; charset=utf-8');
function insert_getMenu($lidsid, $smrt) {
$smrt->display('menu.tpl');
}
?>
......@@ -114,5 +114,3 @@ if (isset($_POST['submit'])) {
}
$smarty->display('track-add.tpl');
?>
......@@ -83,4 +83,3 @@ $smarty->assign('extra_head_links', array(
$smarty->assign('headerfile', 'track-header.tpl');
$smarty->display('track.tpl');
?>
......@@ -192,4 +192,3 @@ else
$smarty->assign('details', 'Shall I call in a missing persons report? This shouldn\'t happen.');
$smarty->display('error.tpl');
}
......@@ -64,5 +64,3 @@ if(isset($user->name)) {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
......@@ -90,4 +90,3 @@ $smarty->assign('extra_head_links', array(
)
));
$smarty->display('user-journal.tpl');
<?
<?php
/* GNU FM -- a free network service for sharing your music listening habits
Copyright (C) 2009 Free Software Foundation, Inc
......@@ -39,4 +39,3 @@ function user_menu($user, $active_page) {
return $submenu;
}
?>
......@@ -92,5 +92,3 @@ if(isset($user->name)) {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
?>
......@@ -81,5 +81,3 @@ if(isset($user->name)) {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
?>
......@@ -61,5 +61,3 @@ if(isset($user->name)) {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
?>
......@@ -67,5 +67,3 @@ if(isset($user->name)) {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
?>
......@@ -92,5 +92,3 @@ try {
$smarty->assign('details', 'Shall I call in a missing persons report?');
$smarty->display('error.tpl');
}
?>
......@@ -42,5 +42,3 @@ echo $users;
$smarty->assign('userlist', $users);
$smarty->display('user-list.tpl');
?>
......@@ -177,5 +177,3 @@
}
}
?>
\ No newline at end of file
......@@ -27,4 +27,3 @@ function getAbsoluteURL() {
$string = (implode("/", $path).'/');
return "http://".$server.$string;
}
?>
......@@ -95,4 +95,3 @@
break;
}
}
?>
......@@ -76,5 +76,3 @@ function identifierTrack ($username, $artist, $track, $album, $time, $mbid=NULL,
return sprintf('%s#track', Server::getTrackURL($artist, $album, $track));
}
......@@ -84,4 +84,3 @@ elseif (function_exists('parse_url'))
// Remove HTTP header.
echo substr(strstr($output, "\r\n\r\n"), 4);
}
......@@ -28,4 +28,3 @@
$code = md5(uniqid(mt_rand(rand(), rand()), true));
return $code;
}
?>
......@@ -26,5 +26,3 @@ function process_jamendo_url($url) {
// We don't know what this is
return $url;
}
?>
......@@ -20,4 +20,3 @@
*/
$version = 0.1;
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment