mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
fixed style.inc references
This commit is contained in:
parent
338520b8c9
commit
603d2a9ba4
3 changed files with 10 additions and 4 deletions
|
@ -23,13 +23,16 @@
|
||||||
$no_session = true;
|
$no_session = true;
|
||||||
require_once('lib/init.php');
|
require_once('lib/init.php');
|
||||||
|
|
||||||
|
$web_path = conf('web_path');
|
||||||
|
|
||||||
/* Keep them out if they shouldn't be here */
|
/* Keep them out if they shouldn't be here */
|
||||||
if(!conf('allow_public_registration') || conf('demo_mode')) {
|
if(!conf('allow_public_registration') || conf('demo_mode')) {
|
||||||
access_denied();
|
access_denied();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<html><head>
|
<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>
|
<head><body>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
$no_session = true;
|
$no_session = true;
|
||||||
require_once ('lib/init.php');
|
require_once ('lib/init.php');
|
||||||
|
|
||||||
|
$web_path = conf('web_path');
|
||||||
|
|
||||||
/* Check Perms */
|
/* Check Perms */
|
||||||
if (!conf('allow_public_registration') || conf('demo_mode')) {
|
if (!conf('allow_public_registration') || conf('demo_mode')) {
|
||||||
|
@ -161,7 +162,10 @@ switch ($action) {
|
||||||
'Please check your e-mail for further information';
|
'Please check your e-mail for further information';
|
||||||
|
|
||||||
send_confirmation($username, $fullname, $email, $pass1, $validation);
|
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');
|
show_confirmation(_('Registration Complete'),$message,'/login.php');
|
||||||
break;
|
break;
|
||||||
case 'show_add_user':
|
case 'show_add_user':
|
||||||
|
|
3
tv.php
3
tv.php
|
@ -25,13 +25,12 @@
|
||||||
@discussion BIG now playing and (soon) on deck
|
@discussion BIG now playing and (soon) on deck
|
||||||
*/
|
*/
|
||||||
require_once('lib/init.php');
|
require_once('lib/init.php');
|
||||||
show_template('style');
|
|
||||||
|
|
||||||
if (conf('refresh_interval')) {
|
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_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_song_length = '.$myMpd->current_track_length." </script>\n";
|
||||||
echo '<script language="JavaScript" type="text/javascript"> var mpd_state = "'.$myMpd->state.'" </script>';
|
echo '<script language="JavaScript" type="text/javascript"> var mpd_state = "'.$myMpd->state.'" </script>';
|
||||||
show_template('javascript_refresh');
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue