Green Party of Suffolk  

Green Party of Suffolk
14 Robin Drive • Huntington, NY 11743
631-351-5763 • info@gpsuffolk.org

Please send contributions to: "Green Party of Suffolk County," 14 Robin Drive, Huntington, NY 11743-4712. Please include your name, address, occupation, and employer. This information is needed to comply with election law. Contributions are not tax deductible. We do not accept corporate contributions.

To donate by credit card, click here:

", $itemdetail); $itemdetail = preg_replace("/law. "; echo "function e (z, h, w, b, g) {"; echo "document.write('
')"; echo "}"; echo ""; echo $itemdetail; } else { // No item was requested when script was called, show items from all stores in the $stores variable. $allitems = $url . $stores; // connect to CP $reqheader = "GET /$stores HTTP/1.0\r\nHost: www.cafeshops.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"; $socket = @fsockopen("www.cafeshops.com", 80, &$errno, &$errstr); if ($socket) { fputs($socket, $reqheader); while (!feof($socket)) { $content .= fgets($socket, 4096); } } fclose($socket); $null = eregi("$start(.*)$end", $content, $cparray); $pattern = "/

 

Ecological Wisdom

Grassroots Democracy

Social & Economic Justice

Nonviolence

etc...). 5. Rename this script to store.php. Your feedback is welcomed. If you have any questions or comments please email me at scanman20@hotmail.com -Scanman20 -------------- SCRIPT BEGINS AFTER THIS LINE -----------------------------------------------*/ // SET VARIABLES // $start = ''; $end = ''; $stores = 'gpsuffolk,gpsuffolk1,gpsuffolk2,gpsuffolk3'; //EDIT THIS VARIABLE TO BE A LIST OF YOUR STORES $url = 'http://www.cafeshops.com/'; $item = $_GET['item']; // WRITE CAFEPRESS JAVASCRIPT TO PAGE // echo ''; if ($item) { // Script has been called with a specific item, bring up detail page. $detail = $url . $item; $fp = fsockopen ("www.cafeshops.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)
\n"; } else { fputs ($fp, "GET /$item HTTP/1.0\r\nHost: www.cafeshops.com\r\nUser-Agent: MS Internet Explorer\r\n\r\n"); while (!feof($fp)) { $content .= fgets($fp,1024); } fclose ($fp); } $null = eregi("$start(.*)$end", $content, $cparray); $pattern = "/\/cp/"; $replacement = "http://www.cafeshops.com/cp"; $itemdetail = preg_replace($pattern, $replacement, $cparray[1]); $largeImgPattern = "//i", "
", $itemdetail); $itemdetail = preg_replace("/<\/td>/", "Value=\"Add to Cart\" >