Top

Comments

  (129)  RSS
tye's
Xpl0reR
Comments: 151
 
mIRC Snippet:  Simple Seen System
Posted on Nov 1, 2008 10:26 pm
nice script. i use it, and i vote 9/10

it would be nice to be able to use wildcards and *!*@hosts.com

that would deserve a big 10

syncmaster
Comments: 1
 
PHP Snippet:  Session Handling
Posted on Jul 18, 2008 8:02 am
Hi,All
Good Work
My Problem Is When I M Implementing Above Code,
For Session Handling
My Form Is Become Active For Long Time?
I Have Set The Time 30 Second.
I Don't Know what Is Wrong With The Code?

I Copied The Same Code;;;;

Sync Master....


lostdeviant
Comments: 5
 
PHP Snippet:  RSS Feed
Posted on Jul 17, 2008 9:13 am
I modified this code a little to better learn PHP (I'm a PHP newbie). Since I currently have each datafeed source in a separate table in my database, I can add a ?x=tablename to pull a feed from that table instead of from the database in general. The description area is modified to work with CSV files from Shareasale, but you could just replace the table names with those from your network.

<?php
// Some RSS readers don't like certain characters in the text so this function will replace them with HTML entities
function escape_upper_chars($text) {
// 32-90, 97-122
for ($x = 0; $x < strlen($text); $x++) {
$w = $text{$x};
if ((ord($w) < 32) || ((ord($w) > 90) && (ord($w) < 97)) || (ord($w) > 122)) {
$q .= '&#'.ord($w).';';
} else {
$q .= $w;
}
}
return $q;
}

$x = mysql_real_escape_string($_GET[x]);
if(!$x) { $x = 'exampletablename'; }


header("Content-type: text/xml");

// Send the header data
echo "<?xml version=\"1.0\"?><!DOCTYPE rss SYSTEM \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">
<rss version=\"0.91\">
<channel>
<title>RSS Feed</title>
<language>en</language>
<link>http://www.website.com</link>
<description>RSS Feed Description</description>\n";

// Force int data type on $limit to prevent SQL injection attacks
$limit = (int)$_GET['limit'];

if (($limit < 1) || ($limit > 50)) { $limit = 20; } // Set the default number of results

// Query the database (make sure you have included the necessary commands to connect to a MySQL server)
$query = "SELECT Name,Merchant,Link,BigImage,Price,Category,SubCategory,Description,Manufacturer,MerchantCategory,MerchantSubcategory,Num
FROM $x
ORDER BY Num DESC
LIMIT $limit";

$s = mysql_query($query);

// Change the variables here according to your query above
while (list($name,$merchant,$link,$bigimage,$price,$category,$subcategory,$description,$manufacturer,$merchantcategory,$merchantsubcategory,$num) = mysql_fetch_row($s)) {

$title = escape_upper_chars($name);
$description = escape_upper_chars($description);

// Customize the data sent to the RSS reader. You should pass text grabbed from the database through escape_upper_chars()

echo "<item>\n"; // Begin a new item
echo "<title><![CDATA[$title]]></title>\n"; // Send the title
echo "<link><![CDATA[$link]]></link>\n"; // Send link to the item
echo "<description><![CDATA[<a href='$link'><IMG SRC='$bigimage' alt='$title' align='left' border='o' hspace='10px'></a> $title<br>$description $$price<p>$category - $subcategory - $merchantcategory - $merchantsubcategory From $merchant $manufacturer]]></description>\n"; // Send description
echo "</item>\n"; //End the item

}

echo "</channel>\n</rss>"; // Close the RSS channel

?>
Eugenio
Comments: 1,102
 
mIRC Snippet:  Simple Seen System
Posted on May 27, 2008 12:12 am
bloody good script
/me rates 9/10
Virus
Comments: 2
 
mIRC Snippet:  Also Known As
Posted on May 25, 2008 5:04 pm
The only time I get any info on users is when I request it, can you see any reason I don't get the "on JOIN" info?
mountaindew
Comments: 1,698
 
mIRC Snippet:  Google Search
Posted on May 3, 2008 3:41 pm
; Tye @ DALnet, Undernet
; tye at mirc . net
;
; This snippet will retrieve the first search result for a query off of Google and execute a command on it.
; Copy this code into your remotes (Alt+R)
;
Quote:

Eugenio: It's /google <text>, not /googlesearch. ;)

Code:

; /googlesearch alias query
; Results will be passed to command
alias googlesearch {
  var %x = 1
  while ($sock($+(google,%x))) inc %x
  sockopen $+(google,%x) www.google.com 80
  sockmark $+(google,%x) $1-
}

;)
Akishoot
Comments: 159
 
mIRC Snippet:  Google Search
Posted on May 3, 2008 3:01 pm
Eugenio: It's /google <text>, not /googlesearch. ;)
Mitchell
Comments: 23
 
mIRC Snippet:  Simple Seen System
Posted on Apr 20, 2008 8:53 am
awesome !seen script, works amazingly. great job :)
Eugenio
Comments: 1,102
 
mIRC Snippet:  Google Search
Posted on Mar 7, 2008 4:31 pm
THERE Unknown command i get that!
napa182
Comments: 1,145
 
mIRC Snippet:  Google Search
Posted on Mar 7, 2008 10:50 am
Eugenio
!google query in a channel will message the channel with the results. or /googlesearch alias query Results will be passed to command
Eugenio
Comments: 1,102
 
mIRC Snippet:  Google Search
Posted on Mar 7, 2008 7:08 am
How do i trigger this ?!?
EL
Comments: 1,186
 
Profile:  tye
Posted on Feb 22, 2008 5:55 am
^5 F*U*R*B*Y*
F*U*R*B*Y*
Comments: 588
 
Profile:  tye
Posted on Feb 22, 2008 1:03 am
she deleted the comment, so i reposted it ;)
EL
Comments: 1,186
 
Profile:  tye
Posted on Feb 21, 2008 6:50 pm
umm look at her most recent snippet comments.You ll get it.Err nvm there gone.There was people implying that she has been ripping.eh they posted links to the source,so umm yeah nvm me >_>
mountaindew
Comments: 1,698
 
Profile:  tye
Posted on Feb 21, 2008 4:58 pm
i dont get it
EL
Comments: 1,186
 
Profile:  tye
Posted on Feb 21, 2008 4:51 pm
mountaindew.This may be a better approach..
Maria click here and "borrow":
http://www.hawkee.com/profile/447/#bottom
XD
mountaindew
Comments: 1,698
 
Profile:  tye
Posted on Feb 21, 2008 4:40 pm
Quote:

I can't create a new topic in the forum "Itroduce Yourself". I'm new and would like to say give and receive greetings. :(

umm...log in and go to Introduce Yourself and click New Topic?
maria
Comments: 4
 
Profile:  tye
Posted on Feb 21, 2008 2:50 am
I can't create a new topic in the forum "Itroduce Yourself". I'm new and would like to say give and receive greetings. :(
mountaindew
Comments: 1,698
 
mIRC Snippet:  Clone scanner and kicker
Posted on Feb 19, 2008 10:45 am
yordan
Comments: 7
 
mIRC Snippet:  Google Search
Posted on Feb 18, 2008 12:47 pm
i got no words for this is great work you irc maniac :)
1 2 3 4 5 6 7 Next
Bottom