1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

fixed style.inc references

This commit is contained in:
Karl 'vollmerk' Vollmer 2006-09-29 23:02:54 +00:00
parent 338520b8c9
commit 603d2a9ba4
3 changed files with 10 additions and 4 deletions

View file

@ -23,13 +23,16 @@
$no_session = true;
require_once('lib/init.php');
$web_path = conf('web_path');
/* Keep them out if they shouldn't be here */
if(!conf('allow_public_registration') || conf('demo_mode')) {
access_denied();
}
?>
<html><head>
<?php show_template('style'); ?>
<link rel="stylesheet" href="<?php echo $web_path; ?>/templates/default.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo conf('theme_path'); ?>/templates/default.css" type="text/css" />
<head><body>
<?php

View file

@ -30,6 +30,7 @@
$no_session = true;
require_once ('lib/init.php');
$web_path = conf('web_path');
/* Check Perms */
if (!conf('allow_public_registration') || conf('demo_mode')) {
@ -161,7 +162,10 @@ switch ($action) {
'Please check your e-mail for further information';
send_confirmation($username, $fullname, $email, $pass1, $validation);
show_template('style');
?>
<link rel="stylesheet" href="<?php echo $web_path; ?>/templates/default.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo conf('theme_path'); ?>/templates/default.css" type="text/css" />
<?php
show_confirmation(_('Registration Complete'),$message,'/login.php');
break;
case 'show_add_user':

3
tv.php
View file

@ -25,13 +25,12 @@
@discussion BIG now playing and (soon) on deck
*/
require_once('lib/init.php');
show_template('style');
if (conf('refresh_interval')) {
echo '<script language="JavaScript" type="text/javascript"> var mpd_elapsed = '.$myMpd->current_track_position." </script>\n";
echo '<script language="JavaScript" type="text/javascript"> var mpd_song_length = '.$myMpd->current_track_length." </script>\n";
echo '<script language="JavaScript" type="text/javascript"> var mpd_state = "'.$myMpd->state.'" </script>';
show_template('javascript_refresh');
}
?>