mIRC Snippet:
Simple Seen System
Posted on Nov 1, 2008 10:26 pm
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
it would be nice to be able to use wildcards and *!*@hosts.com
that would deserve a big 10
PHP Snippet:
Session Handling
Posted on Jul 18, 2008 8:02 am
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....
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....
PHP Snippet:
RSS Feed
Posted on Jul 17, 2008 9:13 am
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
?>
<?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
?>
mIRC Snippet:
Simple Seen System
Posted on May 27, 2008 12:12 am
Posted on May 27, 2008 12:12 am
bloody good script
/me rates 9/10
/me rates 9/10
mIRC Snippet:
Also Known As
Posted on May 25, 2008 5:04 pm
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?
mIRC Snippet:
Google Search
Posted on May 3, 2008 3:41 pm
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)
;
;)
; 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- } |
;)
mIRC Snippet:
Google Search
Posted on May 3, 2008 3:01 pm
Posted on May 3, 2008 3:01 pm
Eugenio: It's /google <text>, not /googlesearch. ;)
mIRC Snippet:
Simple Seen System
Posted on Apr 20, 2008 8:53 am
Posted on Apr 20, 2008 8:53 am
awesome !seen script, works amazingly. great job :)
mIRC Snippet:
Google Search
Posted on Mar 7, 2008 4:31 pm
Posted on Mar 7, 2008 4:31 pm
THERE Unknown command i get that!
mIRC Snippet:
Google Search
Posted on Mar 7, 2008 10:50 am
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
!google query in a channel will message the channel with the results. or /googlesearch alias query Results will be passed to command
mIRC Snippet:
Google Search
Posted on Mar 7, 2008 7:08 am
Posted on Mar 7, 2008 7:08 am
How do i trigger this ?!?
Profile:
tye
Posted on Feb 22, 2008 1:03 am
Posted on Feb 22, 2008 1:03 am
she deleted the comment, so i reposted it ;)
Profile:
tye
Posted on Feb 21, 2008 4:51 pm
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
Maria click here and "borrow":
http://www.hawkee.com/profile/447/#bottom
XD
Profile:
tye
Posted on Feb 21, 2008 4:40 pm
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?
mIRC Snippet:
Clone scanner and kicker
Posted on Feb 19, 2008 10:45 am
Posted on Feb 19, 2008 10:45 am
umm...did you make this?
http://www.mondoirc.net/page.asp?tid=97
http://tecratal.the1djx.com/tecsscript/TecsIRCUtils.mrc
http://www.mondoirc.net/page.asp?tid=97
http://tecratal.the1djx.com/tecsscript/TecsIRCUtils.mrc
mIRC Snippet:
Google Search
Posted on Feb 18, 2008 12:47 pm
Posted on Feb 18, 2008 12:47 pm
i got no words for this is great work you irc maniac :)











