function showIndex($min) { DisplayHead(_UPLOADHISTORY); // Display Activity displayActivity($min); DisplayFoot(); }
header("Location: dir.php?dir=" . urlencode($current)); } // ----------------------------------------------------------------------------- if ($dir == "") { unset($dir); } if (isset($dir)) { if (ereg("(\\.\\.)", $dir)) { unset($dir); } else { $dir = $dir . "/"; } } // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- DisplayHead(_DIRECTORYLIST); ?> <script language="JavaScript"> function MakeTorrent(name_file) { window.open (name_file,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=430') } function ConfirmDelete(file) { return confirm("<?php echo _ABOUTTODELETE; ?> : " + file) } function checkCheck(thisIn) {
$af->time_left = _INCOMPLETE; } if ($af->percent_done < 1) { $graph_width = "1"; } else { $graph_width = $af->percent_done; } if ($af->percent_done >= 100) { $af->percent_done = 100; $background = "#0000ff"; } if (strlen($torrent) >= 39) { $torrent = substr($torrent, 0, 35) . "..."; } $hd = getStatusImage($af); DisplayHead(_DOWNLOADDETAILS, false, "5", $af->percent_done . "% "); ?> <div align="center"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td align="center"> <?php if ($error != "") { echo "<img src=\"images/error.gif\" width=16 height=16 border=0 title=\"ERROR\" align=\"absmiddle\">"; } echo $torrent . "<font class=\"tiny\"> (" . formatBytesToKBMGGB($af->size) . ")</font>"; ?> </td> <td align="right" width="16"><img src="images/<?php echo $hd->image; ?>
function uiSettings() { global $cfg; // load global settings + overwrite per-user settings loadSettings(); // display DisplayHead("Administration - UI Settings"); // Admin Menu displayMenu(); // Main Settings Section ?> <div align="center"> <table width="100%" border="1" bordercolor="<?php echo $cfg["table_admin_border"]; ?> " cellpadding="2" cellspacing="0" bgcolor="<?php echo $cfg["table_data_bg"]; ?> "> <tr><td bgcolor="<?php echo $cfg["table_header_bg"]; ?> " background="themes/<?php echo $cfg["theme"]; ?> /images/bar.gif"> <img src="images/properties.png" width="18" height="13" border="0"> <font class="title">UI Settings</font> </td></tr><tr><td align="center"> <div align="center"> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <form name="theForm" action="admin.php?op=updateUiSettings" method="post"> <tr><td colspan="2" align="center" bgcolor="<?php echo $cfg["table_header_bg"]; ?> "><strong>Index-Page</strong></td></tr> <tr> <td align="left" width="350" valign="top"><strong>Select index-page</strong><br> Select the index-Page. </td> <td valign="top"> <?php printIndexPageSelectForm(); ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>index-page settings</strong><br> Select the columns in transfer-list on index-Page.<br>(only for b4rt-index-page) </td> <td valign="top"> <?php printIndexPageSettingsForm(); ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Width</strong><br> Specify the width of the index-page. (780): </td> <td valign="bottom"> <input name="ui_dim_main_w" type="Text" maxlength="5" value="<?php echo $cfg["ui_dim_main_w"]; ?> " size="5"> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Display Links</strong><br> Display Links on the index-page. (true): </td> <td valign="bottom"> <select name="ui_displaylinks"> <option value="1">true</option> <option value="0" <?php if (!$cfg["ui_displaylinks"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Display Users</strong><br> Display Users on the index-page. (true): </td> <td valign="bottom"> <select name="ui_displayusers"> <option value="1">true</option> <option value="0" <?php if (!$cfg["ui_displayusers"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Select Drivespace-Bar</strong><br> Select Style of Drivespace-Bar on index-Page. </td> <td valign="top"> <?php printDrivespacebarSelectForm(); ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Show Server Stats</strong><br> Enable showing the server stats at the bottom: </td> <td valign="top"> <select name="index_page_stats"> <option value="1">true</option> <option value="0" <?php if (!$cfg["index_page_stats"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Show Server Load</strong><br> Enable showing the average server load over the last 15 minutes: </td> <td valign="top"> <select name="show_server_load"> <option value="1">true</option> <option value="0" <?php if (!$cfg["show_server_load"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Show Connections</strong><br> Enable showing the Sum of TCP-Connections: </td> <td valign="top"> <select name="index_page_connections"> <option value="1">true</option> <option value="0" <?php if (!$cfg["index_page_connections"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Use Refresh</strong><br> Use meta-refresh on index-page. (true): </td> <td valign="bottom"> <select name="ui_indexrefresh"> <option value="1">true</option> <option value="0" <?php if (!$cfg["ui_indexrefresh"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Page Refresh (in seconds)</strong><br> Number of seconds before the torrent list page refreshes: </td> <td valign="top"> <input name="page_refresh" type="Text" maxlength="3" value="<?php echo $cfg["page_refresh"]; ?> " size="3"> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Select Sort-Order</strong><br> Select default Sort-Order of transfers on index-Page. </td> <td valign="top"> <?php printSortOrderSettingsForm(); ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Enable sorttable</strong><br> Enable Client-Side sorting of Transfer-Table: </td> <td valign="top"> <select name="enable_sorttable"> <option value="1">true</option> <option value="0" <?php if (!$cfg["enable_sorttable"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Enable Good looking statistics</strong><br> Enable/Disable "Good looking statistics" : </td> <td valign="top"> <select name="enable_goodlookstats"> <option value="1">true</option> <option value="0" <?php if (!$cfg["enable_goodlookstats"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Good looking statistics settings</strong><br> Configure Settings of "Good looking statistics" : </td> <td valign="top"> <?php printGoodLookingStatsForm(); ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Enable Big bold drivespace warning</strong><br> Enable/Disable "Big bold drivespace warning" : </td> <td valign="top"> <select name="enable_bigboldwarning"> <option value="1">true</option> <option value="0" <?php if (!$cfg["enable_bigboldwarning"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr><td colspan="2" align="center" bgcolor="<?php echo $cfg["table_header_bg"]; ?> "><strong>Download-Details</strong></td></tr> <tr> <td align="left" width="350" valign="top"><strong>Width</strong><br> Specify the width of the details-popup. (450): </td> <td valign="bottom"> <input name="ui_dim_details_w" type="Text" maxlength="5" value="<?php echo $cfg["ui_dim_details_w"]; ?> " size="5"> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Height</strong><br> Specify the height of the details-popup. (290): </td> <td valign="bottom"> <input name="ui_dim_details_h" type="Text" maxlength="5" value="<?php echo $cfg["ui_dim_details_h"]; ?> " size="5"> </td> </tr> <tr><td colspan="2" align="center" bgcolor="<?php echo $cfg["table_header_bg"]; ?> "><strong>Misc</strong></td></tr> <tr> <td align="left" width="350" valign="top"><strong>Display TorrentFlux Link</strong><br> Display TorrentFlux Link at bottom of pages. (true): </td> <td valign="bottom"> <select name="ui_displayfluxlink"> <option value="1">true</option> <option value="0" <?php if (!$cfg["ui_displayfluxlink"]) { echo "selected"; } ?> >false</option> </select> </td> </tr> <tr><td colspan="2"><hr noshade></td></tr> <tr> <td align="center" colspan="2"> <input type="Submit" value="Update Settings"> </td> </tr> </form> </table> </div> </td></tr> </table></div> <?php DisplayFoot(true, true); }
(at your option) any later version. TorrentFlux is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with TorrentFlux; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include_once "config.php"; include_once "functions.php"; $result = shell_exec("w"); $result2 = shell_exec("free -mo"); DisplayHead(_SERVERSTATS); echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>"; echo displayDriveSpaceBar(getDriveSpace($cfg["path"])); echo "</td></tr></table>"; ?> <br> <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"]; ?> ; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible"> <?php echo "<pre>"; echo $result;
as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include_once "config.php"; include_once "functions.php"; $result = shell_exec("df -h " . $cfg["path"]); $result2 = shell_exec("du -sh " . $cfg["path"] . "*"); DisplayHead(_DRIVESPACE); echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>"; echo displayDriveSpaceBar(getDriveSpace($cfg["path"])); echo "</td></tr></table>"; ?> <br> <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"]; ?> ; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible"> <?php echo "<pre>"; echo $result; echo "<br><hr><br>";
as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ // includes include_once "config.php"; include_once "functions.php"; if (isset($_REQUEST["u"])) { DisplayHead("dereferrer", false, '0;URL=' . $_REQUEST["u"]); ?> <br> <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"]; ?> ; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible"> <?php echo '<br><br><strong>'; echo 'forwarding to <a href="' . $_REQUEST["u"] . '">' . $_REQUEST["u"] . '</a> ...'; echo '</strong><br><br>'; DisplayFoot(false, false); } else { header("location: index.php"); exit; }
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include "config.php"; include "functions.php"; DisplayHead(_MOVE_FILE_TITLE, false); if (isset($_GET['start']) && $_GET['start'] == true) { ?> <form method="POST" action="move.php" name="move_form"> <p><?php echo _MOVE_FILE; ?> <input disabled="true" type="text" name="T1" size="91" value="<?php echo $_GET['path']; ?> "></p> <p> <?php echo _MOVE_STRING; ?> <br>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include_once "config.php"; include_once "functions.php"; DisplayHead("Cookie Help", false); ?> <script language="JavaScript"> function closeme() { self.close(); } </script> <BR /> <div align="center">[ <a href="#" onClick="closeme();">close</a> ]</div> <BR /> <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"]; ?> ; position:relative; width:580; padding-left: 5px; padding-right: 5px; z-index:1; visibility: visible"> <strong>How to get Cookie information....</strong>
} } else { die("fatal error torrent file not specified"); } $torrent_cons = ""; if ($af->running == 1 && $alias != "") { $torrent_pid = getTorrentPid($alias); $torrent_cons = netstatConnectionsByPid($torrent_pid); $torrent_hosts = netstatHostsByPid($torrent_pid); } $torrentLabel = htmlentities($torrent, ENT_QUOTES); if (strlen($torrentLabel) >= 39) { $torrentLabel = substr($torrent, 0, 35) . "..."; } $hd = getStatusImage($af); DisplayHead(_ID_HOSTS, false, "15", $af->percent_done . "% "); ?> <div align="center"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td align="center"> <?php if ($error != "") { echo "<img src=\"images/error.gif\" width=16 height=16 border=0 title=\"ERROR\" align=\"absmiddle\">"; } echo $torrentLabel . "<font class=\"tiny\"> (" . $torrent_cons . " " . _ID_HOSTS . ")</font>"; ?> </td> <td align="right" width="16"> <a href="downloaddetails.php?torrent=<?php echo $torrent;
function ShowCookies() { global $cfg, $db; DisplayHead($cfg["user"] . "'s " . _PROFILE); $cid = @$_GET["cid"]; // Cookie ID // Used for when editing a cookie $hostvalue = $datavalue = ""; if (!empty($cid)) { // Get cookie information from database $cookie = getCookie($cid); $hostvalue = " value=\"" . $cookie['host'] . "\""; $datavalue = " value=\"" . $cookie['data'] . "\""; } ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function popUp(name_file) { window.open (name_file,'help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600') } // End --> </script> <div align="center">[<a href="?">Return to Profile</a>]</div> <br /> <div align="center"> <form action="?op=<?php echo !empty($cid) ? "modCookie" : "addCookie"; ?> "" method="post"> <input type="hidden" name="cid" value="<?php echo $cid; ?> " /> <table border="1" bordercolor="<?php echo $cfg["table_admin_border"]; ?> " cellpadding="2" cellspacing="0" bgcolor="<?php echo $cfg["table_data_bg"]; ?> "> <tr> <td colspan="3" bgcolor="<?php echo $cfg["table_header_bg"]; ?> " background="themes/<?php echo $cfg["theme"]; ?> /images/bar.gif"> <img src="images/properties.png" width=18 height=13 border=0 align="absbottom"> <font class="title">Cookie Management</font> </td> </tr> <tr> <td width="80" align="right"> Host:</td> <td> <input type="Text" size="50" maxlength="255" name="host"<?php echo $hostvalue; ?> ><BR /> </td> <td> www.host.com </td> </tr> <tr> <td width="80" align="right"> Data:</td> <td> <input type="Text" size="50" maxlength="255" name="data"<?php echo $datavalue; ?> ><BR /> </td> <td> uid=123456;pass=a1b2c3d4e5f6g7h8i9j1 </td> </tr> <tr> <td> </td> <td colspan="2"> <input type="Submit" value="<?php echo !empty($cid) ? _UPDATE : "Add"; ?> "> </td> </tr> <?php // We are editing a cookie, so have a link back to cookie list if (!empty($cid)) { ?> <tr> <td colspan="3"> <center>[ <a href="?op=editCookies">back</a> ]</center> </td> </tr> <?php } else { ?> <tr> <td colspan="3"> <table border="1" bordercolor="<?php echo $cfg["table_admin_border"]; ?> " cellpadding="2" cellspacing="0" bgcolor="<?php echo $cfg["table_data_bg"]; ?> " width="100%"> <tr> <td style="font-weight: bold; padding-left: 3px;" width="50">Action</td> <td style="font-weight: bold; padding-left: 3px;">Host</td> <td style="font-weight: bold; padding-left: 3px;">Data</td> </tr> <?php // Output the list of cookies in the database $sql = "SELECT c.cid, c.host, c.data FROM tf_cookies AS c, tf_users AS u WHERE u.uid=c.uid AND u.user_id='" . $cfg["user"] . "'"; $dat = $db->GetAll($sql); if (empty($dat)) { ?> <tr> <td colspan="3">No cookie entries exist.</td> </tr> <?php } else { foreach ($dat as $cookie) { ?> <tr> <td> <a href="?op=deleteCookie&cid=<?php echo $cookie["cid"]; ?> "><img src="images/delete_on.gif" width=16 height=16 border=0 title="<?php echo _DELETE . " " . $cookie["host"]; ?> " align="absmiddle"></a> <a href="?op=editCookies&cid=<?php echo $cookie["cid"]; ?> "><img src="images/properties.png" width=18 height=13 border=0 title="<?php echo _EDIT . " " . $cookie["host"]; ?> " align="absmiddle"></a> </td> <td><?php echo $cookie["host"]; ?> </td> <td><?php echo $cookie["data"]; ?> </td> </tr> <?php } } ?> </table> </td> </tr> <?php } ?> <tr> <td colspan="3"> <br> <div align="center"> <A HREF="javascript:popUp('cookiehelp.php')">How to get cookie information....</A> </div> </td> </tr> </table> </form> </div> <br /> <br /> <br /> <?php DisplayFoot(); }
unset($trans_tbl["""]); } return strtr($string, $trans_tbl); } } // Just to be safe ;o) if (!defined("ENT_COMPAT")) { define("ENT_COMPAT", 2); } if (!defined("ENT_NOQUOTES")) { define("ENT_NOQUOTES", 0); } if (!defined("ENT_QUOTES")) { define("ENT_QUOTES", 3); } DisplayHead("RSS Torrents"); // Get RSS feeds from Database $arURL = GetRSSLinks(); // create lastRSS object $rss = new lastRSS(); // setup transparent cache $rss->cache_dir = $cfg["torrent_file_path"]; $rss->cache_time = $cfg["rss_cache_min"] * 60; // 1200 = 20 min. 3600 = 1 hour $rss->strip_html = false; // don't remove HTML from the description echo "<a name=\"top\"></a><div align=\"center\">"; echo "<table border=1 cellspacing=0 width=\"760\" cellpadding=5><tr>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\">RSS Feeds (jump list):"; echo "<ul>"; // Loop through each RSS feed
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include "config.php"; include "functions.php"; DisplayHead('Uncompressing File', false); echo "<body bgcolor=" . $cfg["main_bgcolor"] . " leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"; if (isset($_GET['file']) && $_GET['file'] != "") { echo '<form method="POST" name="pass_form">'; echo '<p>Please enter password for the file: <input type="text" name="passwd" size="60"></p>'; echo '<p><input type="submit" value=" OK " name="OK"></p>'; echo '<input type="hidden" name="file" value="' . str_replace('%2F', '/', urlencode($cfg['path'] . $_GET['file'])) . '">'; echo '<input type="hidden" name="dir" value="' . str_replace('%2F', '/', urlencode($cfg['path'] . $_GET['dir'])) . '">'; echo '<input type="hidden" name="type" value="' . $_GET['type'] . '">'; echo '<input type="hidden" name="exec" value="true">'; echo '</form>'; } if (isset($_POST['exec']) && $_POST['exec'] == true) { $passwd = $_POST['passwd']; if ($passwd == "") { $passwd = "-";
$force_read = 1; } else { $force_read = 0; } $message = check_html($message, "nohtml"); SaveMessage($to_user, $cfg['user'], htmlentities($message), $to_all, $force_read); header("location: readmsg.php"); } else { $rmid = getRequestVar('rmid'); if (!empty($rmid)) { list($from_user, $message, $ip, $time) = GetMessage($rmid); $message = _DATE . ": " . date(_DATETIMEFORMAT, $time) . "\n" . $from_user . " " . _WROTE . ":\n\n" . $message; $message = ">" . str_replace("\n", "\n>", $message); $message = "\n\n\n" . $message; } DisplayHead(_SENDMESSAGETITLE); ?> <form name="theForm" method="post" action="message.php"> <table border="0" cellpadding="3" cellspacing="2" width="100%"> <tr> <td bgcolor="<?php echo $cfg["table_data_bg"]; ?> " align="right"><font size=2 face=Arial><?php echo _TO; ?> :</font></td> <td bgcolor="<?php echo $cfg["table_data_bg"]; ?>
modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ // contributed by NovaKing -- thanks duder! include_once "config.php"; include_once "functions.php"; DisplayHead("View NFO"); $file = $_GET["path"]; $folder = htmlspecialchars(substr($file, 0, strrpos($file, "/"))); if (($output = @file_get_contents($cfg["path"] . $file)) === false) { $output = "Error opening NFO File."; } ?> <div align="center" style="width: 740px;"> <a href="<?php echo "viewnfo.php?path={$file}&dos=1"; ?> ">DOS Format</a> :-: <a href="<?php echo "viewnfo.php?path={$file}&win=1"; ?> ">WIN Format</a> :-:
$message = str_replace("\n", "<br>", $message); echo "<a href=\"" . $_SERVER['PHP_SELF'] . "\"><img src=\"images/up_dir.gif\" width=16 height=16 title=\"" . _RETURNTOMESSAGES . "\" border=0>" . _RETURNTOMESSAGES . "</a><br>"; echo "<table width=\"740\" border=1 bordercolor=\"" . $cfg["table_admin_border"] . "\" cellpadding=\"2\" cellspacing=\"0\"><tr>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" colspan=2>"; echo "<table width=\"100%\" cellpadding=0 cellspacing=0 border=0><tr><td>"; echo _FROM . ": <strong>" . $from_user . "</strong></td><td align=\"right\">"; if (IsUser($from_user)) { echo "<a href=\"message.php?to_user="******"&rmid=" . $mid . "\"><img src=\"images/reply.gif\" width=16 height=16 title=\"" . _REPLY . "\" border=0></a>"; } echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?delete=" . $mid . "\"><img src=\"images/delete_on.gif\" width=16 height=16 title=\"" . _DELETE . "\" border=0></a></td></tr></table>"; echo "</td></tr>"; echo "<tr><td colspan=2>" . _DATE . ": <strong>" . date(_DATETIMEFORMAT, $time) . "</strong></td></tr>"; echo "</tr><td colspan=2 bgcolor=\"" . $cfg["table_data_bg"] . "\">" . _MESSAGE . ":<blockquote><strong>" . $message . "</strong></blockquote></td></tr>"; echo "</table>"; } else { DisplayHead(_MESSAGES); // read and display all messages in a list. $inx = 0; DisplayMessageList(); echo "<table width=\"760\" border=1 bordercolor=\"" . $cfg["table_admin_border"] . "\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"" . $cfg["table_data_bg"] . "\"><tr>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" width=\"20%\"><div align=center class=\"title\">" . _FROM . "</div></td>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\"><div align=center class=\"title\">" . _MESSAGE . "</div></td>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" width=\"20%\"><div align=center class=\"title\">" . _DATE . "</div></td>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" width=\"10%\"><div align=center class=\"title\">" . _ADMIN . "</div></td>"; echo "</tr>"; $sql = "SELECT mid, from_user, message, IsNew, ip, time, force_read FROM tf_messages WHERE to_user="******" ORDER BY time"; $result = $db->Execute($sql); showError($db, $sql); while (list($mid, $from_user, $message, $new, $ip, $time, $force_read) = $result->FetchRow()) { if ($new == 1) { $mail_image = "images/new_message.gif";
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include_once "config.php"; include_once "functions.php"; $result = shell_exec("df -h " . $cfg["path"]); $result2 = shell_exec("du -sh " . $cfg["path"] . "*"); $result4 = shell_exec("w"); $result5 = shell_exec("free -mo"); DisplayHead(_ALL); echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>"; echo displayDriveSpaceBar(getDriveSpace($cfg["path"])); echo "</td></tr></table>"; ?> <br> <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php echo $cfg["main_bgcolor"]; ?> ; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible"> <?php echo "<pre>"; echo "<strong>" . _DRIVESPACE . "</strong>\n\n"; echo $result;
} closedir($dirHandle); $htmlTargets .= '</select><input type="submit" value="Change Graph">'; $htmlTargets .= '</form>'; $htmlTargets .= '</td></tr></table>' . "\n"; } // get content $htmlGraph = ""; $filename = "./mrtg/" . $mrtgTarget . ".inc"; if (file_exists($filename)) { $fileHandle = fopen($filename, "r"); while (!feof($fileHandle)) { $htmlGraph .= fgets($fileHandle, 4096); } fclose($fileHandle); // we are only interested in the "real" content $htmlGraph = array_shift(explode("_CONTENT_END_", array_pop(explode("_CONTENT_BEGIN_", $htmlGraph)))); // rewrite image-links $htmlGraph = preg_replace('/(.*")(.*)(png".*)/i', '${1}mrtg/${2}${3}', $htmlGraph); } // render page content DisplayHead(_ID_MRTG); if (count($mrtgTargets) > 0) { echo $htmlTargets; } echo '<div align="center" id="BodyLayer" name="BodyLayer" style="border: thin solid '; echo $cfg["main_bgcolor"]; echo 'position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible">'; echo $htmlGraph; echo '</div>'; DisplayFoot();
<?php /************************************************************* * TorrentFlux xfer Statistics hack * blackwidow - matt@mattjanssen.net **************************************************************/ /* TorrentFlux xfer Statistics hack is free code; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ include_once 'config.php'; include_once 'functions.php'; DisplayHead(_XFER); if ($cfg['enable_xfer'] == 1) { $cfg['xfer_realtime'] = 1; getDirList($cfg['torrent_file_path']); echo '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'; if ($cfg['xfer_day']) { echo displayXferBar($cfg['xfer_day'], $xfer_total['day']['total'], _XFERTHRU . ' Today:'); } if ($cfg['xfer_week']) { echo displayXferBar($cfg['xfer_week'], $xfer_total['week']['total'], _XFERTHRU . ' ' . $cfg['week_start'] . ':'); } $monthStart = strtotime(date('Y-m-') . $cfg['month_start']); $monthText = date('j') < $cfg['month_start'] ? date('M�j', strtotime('-1 Day', $monthStart)) : date('M�j', strtotime('+1 Month -1 Day', $monthStart)); if ($cfg['xfer_month']) { echo displayXferBar($cfg['xfer_month'], $xfer_total['month']['total'], _XFERTHRU . ' ' . $monthText . ':'); } if ($cfg['xfer_total']) {
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include "config.php"; include "functions.php"; // is enabled ? if ($cfg["enable_sfvcheck"] != 1) { AuditAction($cfg["constants"]["error"], "ILLEGAL ACCESS: " . $cfg["user"] . " tried to use cksfv"); showErrorPage("cksfv is disabled."); } // load settings for bin-path include_once "settingsfunctions.php"; loadSettings(); DisplayHead('sfv check', false); echo "<body bgcolor=" . $cfg["main_bgcolor"] . " leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"; $cmd = $cfg['bin_cksfv'] . ' -C ' . escapeshellarg($_GET['dir']) . ' -f ' . escapeshellarg($_GET['file']); $handle = popen($cmd . ' 2>&1', 'r'); while (!feof($handle)) { $buff = fgets($handle, 30); echo nl2br($buff); ob_flush(); flush(); } pclose($handle); echo "done"; echo "</body>";
TorrentFlux is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with TorrentFlux; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include_once "config.php"; include_once "functions.php"; require_once "metaInfo.php"; global $cfg; $torrent = SecurityClean(getRequestVar('torrent')); DisplayHead(_TORRENTDETAILS); echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>"; echo displayDriveSpaceBar(getDriveSpace($cfg["path"])); echo "</td></tr></table>"; echo "<br>"; echo "<div align=\"left\" id=\"BodyLayer\" name=\"BodyLayer\" style=\"border: thin solid "; echo $cfg["main_bgcolor"]; echo "; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible\">"; $als = getRequestVar('als'); if ($als == "false") { showMetaInfo($torrent, false); } else { showMetaInfo($torrent, true); } echo "</div>"; DisplayFoot();
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To read the license please visit http://www.gnu.org/copyleft/gpl.html *******************************************************************************/ include "config.php"; include "functions.php"; DisplayHead(_REN_TITLE, false); if (isset($_GET['start']) && $_GET['start'] == true) { ?> <form method="POST" action="renameFolder.php" name="move_form"> <p><?php echo _REN_FILE; ?> <input disabled="true" type="text" name="fileFromDis" size="91" value="<?php echo $_GET['file']; ?> "></p> <p><?php echo _REN_STRING; ?> <input type="text" name="fileTo" size="91" value="<?php echo $_GET['file'];
if (!preg_match('/^[a-zA-Z0-9]+$/', $searchEngine)) { showErrorPage("Invalid SearchEngine"); } $searchterm = getRequestVar('searchterm'); if (empty($searchterm)) { $searchterm = getRequestVar('query'); } $searchterm = str_replace(" ", "+", $searchterm); // Check to see if there was a searchterm. // if not set the get latest flag. if (strlen($searchterm) == 0) { if (!array_key_exists("LATEST", $_REQUEST)) { $_REQUEST["LATEST"] = "1"; } } DisplayHead("TorrentSearch " . _SEARCH); echo "<style>.tinyRow {font-size:2px;height:2px;}</style>"; // Display the search box echo "<a name=\"top\"></a><div align=\"center\">"; echo "<table border=1 cellspacing=0 width=\"760\" cellpadding=5><tr>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\">"; echo "<form id=\"searchForm\" name=\"searchForm\" action=\"torrentSearch.php\" method=\"get\">"; echo _SEARCH . " Torrents:<br>"; echo "<input type=\"text\" name=\"searchterm\" value=\"" . str_replace("+", " ", $searchterm) . "\" size=30 maxlength=50> "; echo buildSearchEngineDDL($searchEngine); echo " <input type=\"Submit\" value=\"" . _SEARCH . "\"> "; echo "\n<script language=\"JavaScript\">\n"; echo " function getLatest()\n"; echo " {\n"; echo " var selectedItem = document.searchForm.searchEngine.selectedIndex;\n"; echo " document.searchForm.searchterm.value = '';\n";
function searchSettings() { global $cfg; include_once "AliasFile.php"; include_once "RunningTorrent.php"; include_once "searchEngines/SearchEngineBase.php"; DisplayHead("Administration - Search Settings"); // Admin Menu displayMenu(); // Main Settings Section echo "<div align=\"center\">"; echo "<table width=\"100%\" border=1 bordercolor=\"" . $cfg["table_admin_border"] . "\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"" . $cfg["table_data_bg"] . "\">"; echo "<tr><td bgcolor=\"" . $cfg["table_header_bg"] . "\" background=\"themes/" . $cfg["theme"] . "/images/bar.gif\">"; echo "<img src=\"images/properties.png\" width=18 height=13 border=0> <font class=\"title\">Search Settings</font>"; echo "</td></tr><tr><td align=\"center\">"; ?> <div align="center"> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <form name="theForm" action="admin.php?op=searchSettings" method="post"> <tr> <td align="right" width="350" valign="top"><strong>Select Search Engine</strong><br> </td> <td valign="top"> <?php $searchEngine = getRequestVar('searchEngine'); if (empty($searchEngine)) { $searchEngine = $cfg["searchEngine"]; } echo buildSearchEngineDDL($searchEngine, true); ?> </td> </tr> </form> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td> <?php if (is_file('searchEngines/' . $searchEngine . 'Engine.php')) { include_once 'searchEngines/' . $searchEngine . 'Engine.php'; $sEngine = new SearchEngine(serialize($cfg)); if ($sEngine->initialized) { echo "<table width=\"100%\" border=1 bordercolor=\"" . $cfg["table_admin_border"] . "\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"" . $cfg["table_data_bg"] . "\"><tr>"; echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\" background=\"themes/" . $cfg["theme"] . "/images/bar.gif\"><img src=\"images/properties.png\" width=18 height=13 border=0> <font class=\"title\">" . $sEngine->mainTitle . " Search Settings</font></td>"; echo "</tr></table></td>"; echo "<form name=\"theSearchEngineSettings\" action=\"admin.php?op=updateSearchSettings\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"searchEngine\" value=\"" . $searchEngine . "\">"; ?> </td> </tr> <tr> <td> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td align="left" width="350" valign="top"><strong>Search Engine URL:</strong></td> <td valign="top"> <?php echo "<a href=\"http://" . $sEngine->mainURL . "\" target=\"_blank\">" . $sEngine->mainTitle . "</a>"; ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Search Module Author:</strong></td> <td valign="top"> <?php echo $sEngine->author; ?> </td> </tr> <tr> <td align="left" width="350" valign="top"><strong>Version:</strong></td> <td valign="top"> <?php echo $sEngine->version; ?> </td> </tr> <?php if (strlen($sEngine->updateURL) > 0) { ?> <tr> <td align="left" width="350" valign="top"><strong>Update Location:</strong></td> <td valign="top"> <?php echo "<a href=\"" . $sEngine->updateURL . "\" target=\"_blank\">Check for Update</a>"; ?> </td> </tr> <?php } if (!$sEngine->catFilterName == '') { ?> <tr> <td align="left" width="350" valign="top"><strong>Search Filter:</strong><br> Select the items that you DO NOT want to show in the torrent search: </td> <td valign="top"> <?php echo "<select multiple name=\"" . $sEngine->catFilterName . "[]\" size=\"8\" STYLE=\"width: 125px\">"; echo "<option value=\"-1\">[NO FILTER]</option>"; foreach ($sEngine->getMainCategories(false) as $mainId => $mainName) { echo "<option value=\"" . $mainId . "\" "; if (@in_array($mainId, $sEngine->catFilter)) { echo " selected"; } echo ">" . $mainName . "</option>"; } echo "</select>"; echo " </td>\n"; echo " </tr>\n"; } } } echo " </table>\n"; echo " </td></tr></table>"; echo " <br>\n"; echo " <input type=\"Submit\" value=\"Update Settings\">"; echo " </form>\n"; echo " </div>\n"; echo " <br>\n"; echo "</td></tr>"; echo "</table></div>"; DisplayFoot(); }