//DISPLAY NFO BLOCK
if($row["nfo"]== "yes"){
$nfofilelocation = "$nfo_dir/$row[id].nfo";
$filegetcontents = file_get_contents($nfofilelocation);
$nfo = htmlspecialchars($filegetcontents);
if ($nfo) {
$nfo = my_nfo_translate($nfo);
echo "<br /><center><b>NFO ↴</b></center><br />";
print("<center><textarea class='nfo' style='width:99%;height:100%;' rows='20' cols='20' readonly='readonly'>".stripslashes($nfo)."</textarea></center>");
}else{
print(T_("ERROR")." reading .nfo file!");
}
}
//DISPLAY NFO BLOCK
if($row["nfo"]== "yes"){
$nfofilelocation = "$nfo_dir/$row[id].nfo";
$filegetcontents = file_get_contents($nfofilelocation);
$nfo = htmlspecialchars($filegetcontents);
if ($nfo) {
$nfo = my_nfo_translate($nfo);
if (get_user_class() >= 4) {
echo "<a class='stylebouton' href='nfo-view.php?id=".$row["id"]."' target='_blank'>".T_("VIEW_CURRENT_NFO")."</a>";
}
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><br /><center><b>NFO ↴</b><br />";
print("<textarea class='nfo collapsible' style='width:96%;height:100%;' rows='20' cols='20' readonly='readonly'>".stripslashes($filegetcontents)."</textarea></center><br/>");
}else{
print(T_("ERROR")." Reading the .nfo file is not good! make sure that the encoding is in UTF-8 and that the file has the extension .nfo ");
}
}
if ($nfo) {
$nfo = my_nfo_translate($nfo);
if($CURUSER["edit_torrents"]=="yes")
begin_frame(T_("NFO_FILE_FOR").": <a href='".$site_config["SITEURL"]."/torrents-details.php?id=$id'>$shortname</a> - <a href='nfo-edit.php?id=$id'>".T_("NFO_EDIT")."</a>");
else
begin_frame(T_("NFO_FILE_FOR").": $shortname");
print("<textarea class='nfo' style=\"width:98%;height:100%;\" rows='50' cols='20' readonly='readonly'>".stripslashes($nfo)."</textarea>");
end_frame();
}
}//has nfo
if ($nfo) {
$nfo = my_nfo_translate($nfo);
if($CURUSER["edit_torrents"]=="yes")
begin_frame("<a href='".$site_config["SITEURL"]."/torrents-details.php?id=$id'><font size='3'>".$shortname."</font></a>");
else
begin_frame("$shortname");
// .stripslashes($nfo)." // < souvegarde plus valide pour la v3
print('<textarea class="nfo" name="content" cols="210" rows="40">'.$filegetcontents.'</textarea><br />');
print("<br/><center><a class='stylebouton' href='nfo-edit.php?id=$id'>".T_("NFO_EDIT")."</a></center>");
end_frame();
}
}//has nfo
mysql_query
mysqli_query
mysql_fetch_array
mysqli_fetch_array
$query = "INSERT INTO trackerlog (timecode, tag, monat, jahr, eintrag) VALUES ($t_code, '$tag', '$monat', '$jahr', '$text')";
if (mysql_query($query))
$query = SQL_Query_exec("INSERT INTO trackerlog (timecode, tag, monat, jahr, eintrag) VALUES ($t_code, $tag, $monat, $jahr, $text)");
if (SQL_Query_exec)
"serph, post: 67141, member: 1398":
im not quite sure what you mean the page takes 10 seconds to load ? or ?
"steven07, post: 67099, member: 1032":
Thank you very much for your answer. I have installed a shoutcast 2 server.
That would be very nice of you if you could help me with a frame on
---------------------------------------------------------------------------------------
[color=rgb(44, 130, 201)]Merci beaucoup pour votre réponse, j'ai installé un serveur shoutcast 2.
Ce serait très gentil de votre part si vous pouviez m'aider avec une Frame pour le shoutcast 2 [/color]:cool:
// Player Shoutcast v2 by spiritblue
if ($site_config['Player_shoutcast']){
begin_frame(T_("Player Live Shoutcast"));
?>
<link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />
<script type="text/javascript" src="backend/java_klappe.js"></script>
<?php
$ip = "crazyspirits.com"; //IP or Name domain
$port = "9090";// Port (Exemple: 8080)
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
#echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream offline!' border='0'/> ...SORRY! Close for the night Or for maintenance. Back very soon ?? </center>";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
if (empty($split[6]))
{
echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream hors ligne !' border='0'/> ...SORRY! Close for the night and return early tomorrow at country time.</center><hr/>"; // Displays when sever is online but no song title
}
else
{
$title = str_replace('\'', '`', $split[6]);
$title = str_replace(',', ' ', $title);
$split = explode(' - ', $title);
$artist = trim($split[0]);
$song = trim($split[1]);
}
}
/////
function truncate($string, $length, $dots = "...") {
return (strlen($string) > $length) ? substr($string, 0, $length - strlen($dots)) . $dots : $string;
}
?>
<center><span style="font-size:22px;color:#2090FF;"><img src='./images/radio/online.png' alt='Stream en ligne' title='Stream en ligne !' border='0'/> Currently on the radio ?¿..</span></center>
<br/>
<div border="4" cellpadding="7" align="center">
<div id="nowPlaying" style="left:100%;font-size:15px;color:DarkGray;"><b>Artist:</b> <?php echo truncate("$artist", 40); ?></div>
<div id="nowPlaying" style="left:100%;font-size:15px;color: DarkGray;"><b>Song:</b> <?php echo truncate("$song", 40); ?></div>
<hr/>
<!-- player-container -->
<audio id="player" volume="0" autoplay="false" preload="auto" src="http://crazyspirits.com:9090/;listen.m3u"></audio>
<button type="button" onclick="document.getElementById('player').play()">Play</button>
<button onclick="document.getElementById('player').pause()">Pause</button>
<button onclick="document.getElementById('player').volume += 0.1">Vol +</button>
<button onclick="document.getElementById('player').volume -= 0.1">Vol -</button>
<script type="text/javascript">
var monElementAudio = document.getElementById('player');
monElementAudio.volume = 0.9; //minimum volume heard once online
</script>
</div>
<?php
end_frame();
}
// End player spiritblue
"steven07, post: 67108, member: 1032":
I have a problem with the torrent file
Have a torrent uploaded and everything goes normal when uploading
But if I load the torrent from my side and take in the seed I get this error message
[color=rgb(184, 49, 47)]Failed to add torrent. The retrieved content is not a valid torrent file. [/color]
[color=rgb(255, 255, 255)]Maybe someone had the problem or knows what it is?
Thank you [/color]
"serph, post: 67090, member: 1398":
post your functions.php ill need to take a look as its working as should on my dev site v03 and main site v2.08
//$country
$res = SQL_Query_exec("SELECT name FROM countries WHERE id=$user[country] LIMIT 1");
if (mysqli_num_rows($res) == 1){
$arr = mysqli_fetch_assoc($res);
$country = "$arr[name]";
}
if (!$country) $country = "<b>Aucun</b>";
//$stylesheet
$res = SQL_Query_exec("SELECT name FROM stylesheets WHERE id=$user[stylesheet] LIMIT 1");
if (mysqli_num_rows($res) == 1){
$arr = mysqli_fetch_assoc($res);
$stylesheets = "$arr[name]";
}
<?php echo T_("USERCLASS"); ?>: <?php echo get_user_class_name($user["class"])?><br /><?php echo T_("THEME_NAME"); ?>: <?php echo $stylesheets?><br />$LANG["THEME_NAME"] = "Theme Uses"; 
<?php
require_once("backend/functions.php");
dbconn();
if ($CURUSER["control_panel"] != "yes") { show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1); }
$page = (int) $_GET["page"];
$perpage = 50;
$res2 = SQL_Query_exec("SELECT COUNT(*) FROM torrents WHERE banned = 'no' AND seeders < 1");
$row2 = mysqli_fetch_array($res2);
$count = $row2[0];
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "torrents-dead.php?id=$id&");
$res = SQL_Query_exec("SELECT torrents.id, torrents.name, torrents.owner, torrents.external, torrents.size, torrents.seeders, torrents.leechers, torrents.times_completed, torrents.added, torrents.last_action, users.username FROM torrents LEFT JOIN users ON torrents.owner = users.id WHERE torrents.banned = 'no' AND torrents.seeders < 1 ORDER BY torrents.added DESC $limit");
if ($_POST["do"] == "delete") {
if (!@count($_POST["torrentids"]))
show_error_msg("Error", "<div style='margin-top:10px; margin-bottom:10px' align='center'>You must select at least one torrent. [<a href='torrents-dead.php'><b>Return </b></a>]</div>", 1);
foreach ($_POST["torrentids"] as $id) {
deletetorrent(intval($id));
write_log("<a href=account-details.php?id=$CURUSER[id]><b>$CURUSER[username]</b></a>deleted the torrent ID : [<b>$id</b>]of the page: <i><b>Dead Torrents </b></i>");
}
autolink("torrents-dead.php", "The selected torrent has been successfully deleted .");
}
stdhead("Dead Torrents");
if ($count < 1) show_error_msg("".T_("NOTHING_FOUND")."", "<div style='margin-top:10px; margin-bottom:10px' align='center'><font size='2'><i>...No Dead Torrents !</i></font></div>", 1);
begin_frame("The Dead Torrents");
echo "<div style='margin-top:10px' align='center'><font size='4'>List of dead torrents without being shared and sorted by date of sharing </font></div>";
echo "<hr class='barre'/><div style='margin-top:16px; margin-bottom:20px' align='center'><font size='4'>We have<font color='IndianRed'><b>$count</b></font> DEAD".($count != 1 ? "s" : "")." torrent".($count != 1 ? "s" : "")."</font></div>";
If ($count > $perpage) { print($pagertop);
print("<br />");
}
?>
<form id="myform" method='post' action='torrents-dead.php'>
<input type='hidden' name='do' value='delete' />
<table cellpadding="5" cellspacing="0" class="table_table" align="center" width="98%">
<tr>
<th class="table_head" align="left"><?php echo T_("TORRENT_NAME"); ?></th>
<th class="table_head" align="left"><?php echo T_("UPLOADER"); ?></th>
<th class="table_head"><?php echo T_("SIZE"); ?></th>
<th class="table_head"><img src="images/seed.gif" border="0" title="Seeders"></th>
<th class="table_head"><img src="images/leech.gif" border="0" title="Leechers"></th>
<th class="table_head"><img src="images/ready.png" border="0" title="Completed"></th>
<th class="table_head" width="1%"><?php echo T_("ADDED"); ?></th>
<th class="table_head" width="1%"><?php echo T_("LAST_ACTION"); ?></th>
<?php if (get_user_class() >= 6) { ?>
<th class='table_head'><input type='checkbox' name='checkall' onclick='checkAll(this.form.id);' /></th>
<?php } ?>
</tr>
<?php
while ($row = mysqli_fetch_assoc($res))
{
if ($row["username"]) $owner = "<a href='account-details.php?id=".$row["owner"]."'><b>".$row["username"]."</b></a>";
else $owner = T_("UNKNOWN_USER");
?>
<tr>
<td class="table_col1"><a href="torrents-details.php?id=<?php echo $row["id"]; ?>"><?php echo CutName(htmlspecialchars($row["name"]), 50) ?></a></td>
<td class="table_col2"><?php echo $owner; ?></td>
<td class="table_col2" align="center"><?php echo mksize($row["size"]); ?></td>
<td class="table_col1" align="center"><font color="limegreen"><b><?php echo number_format($row["seeders"]); ?></b></font></td>
<td class="table_col2" align="center"><font color="red"><b><?php echo number_format($row["leechers"]); ?></b></font></td>
<td class="table_col1" align="center"><font color="#0080FF"><b><?php echo number_format($row["times_completed"]); ?></b></font></td>
<td class="table_col2" align="center"><?php echo date("d.M.Y H:i", utc_to_tz_time($row["added"])) ?></td>
<td class="table_col2" align="center"><?php echo date("d.M.Y H:i", utc_to_tz_time($row["last_action"])) ?></td>
<?php if (get_user_class() >= 6) { ?>
<td class='table_col2' align='center'><input type='checkbox' name='torrentids[]' value='<?php echo $row["id"]; ?>' /></td>
<?php } ?>
</tr>
<?php
}
?>
</table>
<?php if (get_user_class() >= 6) { ?>
<div style='margin-top:3px' align='right'><input type='submit' value='Remove The Checks ' /> </div>
<?php } ?>
</form>
<?php
If ($count > $perpage) { print($pagerbottom); } else { print("<br />"); }
end_frame();
stdfoot();
?>
$LANG["TORRENT_NAME"] = "Torrent Name";
$LANG["UPLOADERS"] = "Uploader";
$LANG["SIZE"] = "Size";
$LANG["ADDED"] = "Add";
$LANG["LAST_ACTION"] = "last Action";
$LANG["UNKNOWN_USER"] = "Unknown member ";
$LANG["NOTHING_FOUND"] = "Nothing was found ";
$LANG["ERROR"] = "Error";
$LANG["SORRY_NO_RIGHTS_TO_ACCESS"] = "Sorry, you are not allowed to access this page !";
"DarkMaster, post: 67066, member: 1":
[USER=401]@spiritblue[/USER] would you like to share your version with us please