if ($action=="groups" && $do=="view"){
if ($CURUSER["class"] < "15"){
show_error_msg("Error","Sorry you do not have the rights to view this page!",1);
}"Lakicevic Boris, post: 52857":hm,in my functions.php v2.05 i have not
\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=print("<td class=ttable_col2 nowrap><a href=\"java script: klappe_torrent('t".$row['id']."')
\"Show/Hide\" class=\"showthecross\"><a title=\"".$row["name"]."\" href=\"torrents-details.php?
id=$id&hit=1\">$dispname</a>");
i have like this one,any idea
_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=print("<td class=ttable_col$x nowrap>".(count($expandrows)?"<a href=\"java script: klappe
\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\"></a>":"")." <a title=
\"".$row["name"]."\" href=\"torrents-details.php?id=$id&hit=1\">$dispname</a>");
"flashmate, post: 52825":nightmare:
with your code, appear torrents with 0 comments... how can i fix it?
thank you for your code.
<?
begin_block("Last Comments");
$res = mysql_query("SELECT * FROM torrents ORDER BY added DESC LIMIT 10") or die(mysql_error()); //Change the 10 to the number of torrents you want to display.
$arr = mysql_fetch_array($res);
while ($arr = mysql_fetch_assoc($res))
{
//////Cut Name///////////////
$char1 = 20; //cut name length change to the number of chars you want to display
$smallname = CutName(htmlspecialchars($arr["name"]), $char1);
$dispname = "<b>".$smallname."</b>";
////////////////////////////
$torid = $arr['id'];
$tornname = $arr['name'];
$visites = $arr['hits'];
$q = mysql_query("SELECT COUNT(*) FROM comments WHERE torrent=$torid") or die(mysql_error());
$r = mysql_fetch_row($q);
$numcomments = $r[0];
if ($numcomments > 0) {
?>
<table width="100%" border="0">
<tr>
<td><div align="center"><b><?=$dispname?></b></div></td>
</tr>
<tr>
<td><div align="center"><font color="#009900">[Comments: <? echo "<a href=torrents-details.php?id=$torid&hit=1>$numcomments</a>";?>]</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#FF0000">[Hits: <?=$visites?>]</font></div></td>
</tr>
</table>
<?
}
}
end_block();
?> "daffy, post: 52783":yeah where the F is this mod at? no mods no screens? nice er... "TEXT" world
"daffy, post: 52490":Unknown column 'friendid' in 'field list'
"world, post: 52450":i had try to host there but is fake i think.............no answers from no one.............no admins no nothing..........they give space and panel but that dont work at all.................i loose my money there.
if ($CURUSER["class"] <= $user["class"]){
show_error_msg("Error","You do not have right to edit this account.",1);
}
begin_frame("Staff Only Information"); <td align="center"><a href=admincp.php?action=ipbans><img src="images/admin/blocked.gif" border=0 width=32 height=32><BR>Banned IPs</a><BR></td>add after:<td align="center"><a href=admincp.php?action=emailparser><img src="images/admin/mail.gif" border=0 width=32 height=32><BR>E-Mail Parser</a><BR></td>
next add to the end before the ?> :
#======================================================================#
# E-Mail Parser
#======================================================================#
if ($action=="emailparser"){
###############################################################
# Email Extractor 1.0
###############################################################
# Visit http://www.zubrag.com/scripts/ for updates
###############################################################
$the_url = isset($_REQUEST['url']) ? htmlspecialchars($_REQUEST['url']) : '';
stdhead("E-Mail Parser");
navmenu();
begin_frame("E-Mail Parser");
?>
<form method="post">
Please enter full URL of the page to parse (including http://):<br />
<input type="text" name="url" size="65" value="<?php echo $the_url; ?>"/><br />
or enter text directly into textarea below:<br />
<textarea name="text" cols="50" rows="15"></textarea>
<br />
<input type="submit" value="Parse Emails" />
</form>
<?php
if (isset($_REQUEST['url']) && !empty($_REQUEST['url'])) {
// fetch data from specified url
$text = file_get_contents($_REQUEST['url']);
}
elseif (isset($_REQUEST['text']) && !empty($_REQUEST['text'])) {
// get text from text area
$text = $_REQUEST['text'];
}
// parse emails
if (!empty($text)) {
$res = preg_match_all(
"/[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}/i",
$text,
$matches
);
if ($res) {
foreach(array_unique($matches[0]) as $email) {
echo $email . "<br />";
}
}
else {
echo "No emails found.";
}
}
end_frame();
stdfoot();
}
#======================================================================
# END E-Mail Parser
#======================================================================#