function makeimage($url, $image, $dir = '') { $data = getimg($url); $img = $dir . $image; $im = @imagecreatefromstring($data); if ($im !== false) { file_put_contents($img, $data); } else { $img = false; } return $img; }
</div> </div> </td> </tr> <?php if (isset($banner) && $banner->banner_file != '') { ?> <tr> <td class="label">Current File</td> <td align="center"> <?php echo $banner->banner_file_fr ? getimg('banners/' . $banner->banner_file, '200x100') : ''; ?> <?php echo $banner->banner_file_fr ? getimg('banners/' . $banner->banner_file_fr, '200x100') : ''; ?> </td> </tr> <?php } ?> <tr> <td class="label">Banner Link to</td> <td><input name="link_to" type="text" size="35" id="link_to" value="<?php echo set_value('link_to', isset($banner) ? $banner->link_to : ''); ?> " /></td> </tr> <!-- <tr>
function page() { $page = CurrentPageName(); $trans["society"] = "sohu.com.cn"; $trans["associations"] = "vgwort.de"; $trans["publicite"] = "adnxs.com"; $trans["shopping"] = "amazon.com"; $trans["abortion"] = "bornsilent.com"; $trans["agressive"] = "horror-extreme.com"; $trans["alcohol"] = "best-of-vodka.com"; $trans["animals"] = "photographsofanimals.info"; $trans["astrology"] = "indianastrologers.in"; $trans["youtube"] = "youtube.com"; $trans["audio-video"] = "youtube.com"; $trans["automobile/bikes"] = "breezerbikes.com"; $trans["automobile/boats"] = "bsailing.com"; $trans["automobile/carpool"] = "covoiturage.fr"; $trans["automobile/cars"] = "bmw.com"; $trans["automobile/planes"] = "airliners.net"; $trans["bicycle"] = "londoncyclist.co.uk"; $trans["blog"] = "blogspot.gr"; $trans["books"] = "search-ebooks.com"; $trans["browsersplugins"] = "addons.mozilla.org"; $trans["celebrity"] = "fanpop.com"; $trans["chat"] = "purechat.com"; $trans["children"] = "toysrus.com"; $trans["cleaning"] = "kaspersky.com"; $trans["clothing"] = "zara.com"; $trans["converters"] = "calculette.net"; $trans["cosmetics"] = "sephora.com"; $trans["culture"] = "culture.fr"; $trans["dangerous_material"] = "modelguns.co.uk"; $trans["dating"] = "inchallah.com"; $trans["dictionaries"] = "dictionary.com"; $trans["downloads"] = "softpedia-static.com"; $trans["drugs"] = "cannabis-seed.us"; $trans["dynamic"] = "cpe.pppoe.ca"; $trans["electricalapps"] = "thermomix.com"; $trans["electronichouse"] = "pioneer.com"; $trans["filehosting"] = "dropbox.com"; $trans["finance/banking"] = "americanexpress.com"; $trans["finance/insurance"] = "assurpeople.com"; $trans["finance/moneylending"] = "cetelem.com.ar"; $trans["finance/other"] = "webmoney.ru"; $trans["finance/realestate"] = "ladyrealestate.ca"; $trans["financial"] = "home-finance-reports.com"; $trans["forums"] = "forumotion.com"; $trans["gamble"] = "casino-on-line.cc"; $trans["games"] = "xbox360onlinegames.com"; $trans["genealogy"] = "accessgenealogy.com"; $trans["gifts"] = "lacartedevoeux.com"; $trans["governments"] = "cityofnewyork.us"; $trans["green"] = "cooperativeecology.us"; $trans["hacking"] = "iandrohacker.com"; $trans["handicap"] = "handicap-international.ca"; $trans["health"] = "cancerscreen.com.sg"; $trans["hobby/arts"] = "wikiart.org"; $trans["hobby/cooking"] = "cooking-corner.com"; $trans["hobby/other"] = "powerhousedancing.com"; $trans["hobby/pets"] = "precious-pets-paradise.com"; $trans["paytosurf"] = "goldenaffiliate.cz"; $trans["hobby/fishing"] = "purefishing.com"; $trans["hospitals"] = "mayoclinic.org"; $trans["houseads"] = "entreparticuliers.com"; $trans["housing/accessories"] = "ikea.com"; $trans["housing/doityourself"] = "travauxbricolage.fr"; $trans["housing/builders"] = "baileyhome.us"; $trans["humanitarian"] = "unesco.org"; $trans["imagehosting"] = "photobucket.com"; $trans["industry"] = "safe-cronite.com"; $trans["internal"] = "touzeau.local"; $trans["isp"] = "adhosting.nl"; $trans["smallads"] = "olxtunisie.com"; $trans["stockexchange"] = "onvista.de"; $trans["jobsearch"] = "myjob.com"; $trans["jobtraining"] = "afpa.fr"; $trans["justice"] = "criminaljusticeusa.com"; $trans["learning"] = "thetotallearningcenter.com"; $trans["luxury"] = "cartier.com"; $trans["mailing"] = "transisky.fr"; $trans["malware"] = "pxksviivmcbdc.co.uk"; $trans["manga"] = "mangareader.net"; $trans["maps"] = "openstreetmap.us"; $trans["marketingware"] = "hubspot.com"; $trans["medical"] = "onlinepharmacopeia.com"; $trans["mixed_adult"] = "sexegifts.com"; $trans["mobile-phone"] = "aptoide.com"; $trans["models"] = "perubeauties.org"; $trans["movies"] = "netflix.com"; $trans["music"] = "guitarparty.com"; $trans["nature"] = "greenpeace.org"; $trans["news"] = "lefigaro.fr"; $trans["passwords"] = "lastpass.com"; $trans["phishing"] = "vvvwpaypal.com"; $trans["photo"] = "photographevents.biz"; $trans["photo"] = "picnik.com"; $trans["pictureslib"] = "deviantart.com"; $trans["politic"] = "quebecpolitique.com"; $trans["p**n"] = "youporn.com"; $trans["proxy"] = "videounblock.com"; $trans["reaffected"] = "114king.com"; $trans["recreation/humor"] = "2001blagues.com"; $trans["recreation/nightout"] = "moulinrouge.fr"; $trans["recreation/schools"] = "uillinois.edu"; $trans["recreation/sports"] = "planetabasketball.com"; $trans["recreation/travel"] = "hoteltravel.com"; $trans["recreation/wellness"] = "fitness-news.org"; $trans["redirector"] = "tinyurl.com"; $trans["religion"] = "catholic.org.hk"; $trans["remote-control"] = "teamviewer.com"; $trans["sciences"] = "afnor.org"; $trans["science/astronomy"] = "thalesaleniaspace-astronomy.com"; $trans["science/computing"] = "ibm.com"; $trans["science/weather"] = "wunderground.com"; $trans["science/chemistry"] = "chemicalsafety.org.cn"; $trans["searchengines"] = "google.com"; $trans["sect"] = "myspiritualprofile.com"; $trans["sexual_education"] = "sexeducationforkids.com"; $trans["sex/lingerie"] = "sexydress.com"; $trans["smallads"] = "vivastreet.com"; $trans["socialnet"] = "facebook.com"; $trans["spyware"] = "lolofaa888mfudodkfkfjdkf.info"; $trans["sslsites"] = "verisign.com"; $trans["suspicious"] = "com-ww79.net"; $trans["teens"] = "melty.fr"; $trans["tobacco"] = "greensmoke.com"; $trans["tracker"] = "2o7.net"; $trans["translators"] = "babylon.com"; $trans["transport"] = "ht-transport.com"; $trans["updatesites"] = "windowsupdate.com"; $trans["violence"] = "mafiacrime.org"; $trans["warez"] = "warez-bb.org"; $trans["weapons"] = "gunclassics.com"; $trans["webapps"] = "officelive.com"; $trans["webmail"] = "hotmail.com"; $trans["webphone"] = "voiphaber.com"; $trans["webplugins"] = "jquerymobile.com"; $trans["webradio"] = "romantica.fm"; $trans["webtv"] = "bbcnews.tv"; $trans["wine"] = "bourgogne-vins.com"; $trans["womanbrand"] = "journaldesfemmes.com"; $trans["horses"] = "find-your-horse.com"; $trans["meetings"] = "ezmeeting.com"; $trans["tattooing"] = "tattooing.com"; $trans["publicite"] = "adnxs.com"; $trans["getmarried"] = "happyweddingwishes.com"; $trans["literature"] = "citation-ou-proverbe.fr"; $trans["police"] = "policja.gov.pl"; $trans["searchengines"] = "google.com"; while (list($category, $website) = each($trans)) { $mdd5 = md5($category . $website); $img = getimg($category, $website); $html[] = "<table style='width:100%'>\n\t<tr>\n\t\t<td style='font-size:18px' width=45% nowrap>{$website}</td>\n\t\t<td style='font-size:18px' width=25% nowrap align='left'>{$category}</span></td>\n\t\t{$img}\n\t</tr>\t\t\n\t"; } $echo = "<div style='width:98%' class=form>\n\t<table style='width:100%'>" . @implode("\n", $html) . "</table>\n\t</div>\n\t"; echo $echo; }
<th width="70%">Link</th> <th width="25%">Action</th> </tr> </thead> <tbody> <?php foreach ($banners as $dkey => $dval) { ?> <tr> <td><?php echo $dval->banner_id; ?> </td> <td class="left"><?php echo getimg('banners/' . $dval->banner_file, '200x100'); ?> </td> <td class="left"><strong><?php echo $dval->banner_name; ?> </strong><br/><?php echo $dval->link_to; ?> </td> <td style="white-space:nowrap;"><a href="<?php echo current_url(); ?> /edit/<?php echo $dval->banner_id; ?>
<?php include 'hloun/config.php'; $settings = $SQL->getSettings(); include 'admincp/src/facebook.php'; $config = array(); $config['appId'] = $settings->app_id; $config['secret'] = $settings->app_key; $config['fileUpload'] = true; // optional $facebook = new Facebook($config); $user = $facebook->getUser(); if ($user) { $user_profile = $facebook->api('/me'); $access = $facebook->getAccessToken(); $string = getimg('https://graph.facebook.com/oauth/access_token?client_id=' . $settings->app_id . '&client_secret=' . $settings->app_key . '&grant_type=fb_exchange_token&fb_exchange_token=' . $access); $access = getAcess('http://facebook.com/?' . $string); $id = $user_profile['id']; $name = mysql_escape_string(htmlspecialchars($user_profile['name'])); $date = time(); $sql = mysql_query("select * from users where user_id='{$id}'"); if (mysql_num_rows($sql)) { mysql_query("update users set access='{$access}',date='{$date}' where user_id='{$id}'"); } else { mysql_query("insert into users (name,user_id,access,date) values ('{$name}','{$id}','{$access}','{$date}')"); } } else { } ?> <script> window.close();
} else { if (verifykey($superCage->get->getRAW('magik'))) { if ($superCage->get->getRAW('getalb') == 1) { getImages($superCage->get->getRAW('alb')); } else { if ($superCage->get->getRAW('getroot') == 1) { getroot(); } else { if ($superCage->get->getRAW('getcat') == 1) { getAlbums($superCage->get->getRAW('cat')); } else { if ($superCage->get->getRAW('albumlisting') == 1) { treeBuilder(); } else { if ($superCage->get->getRAW('getimg') == 1) { getimg($superCage->get->getRAW('img')); } else { if ($superCage->get->getRAW('photoinfo') == 1) { getPhotoInfo($superCage->get->getRAW('photo')); } else { if ($superCage->get->getRAW('albumList') == 1) { albumList(); } else { if ($superCage->get->getRAW('move') == 1) { processMove(); } } } } } }
preg_match_all('/<img.{0,}src=["|\\/|h][[:graph:]]+/', $str, $match); $i = count($match[0]); $f = 0; while ($i != $f) { $val = substr(strstr($match[0][$f], "src="), 5); $vl = str_replace('"', '', $val); $vl = str_replace('>', '', $vl); if ($vl[0][0] == "/") { $match[0][$f] = $argv[1] . $vl; } else { $match[0][$f] = $vl; } $f++; } $val = $argv[1]; if (substr($argv[1], 0, 7) == "http://") { $val = substr($argv[1], 7); } if (file_exists($val) == FALSE) { mkdir($val, 0777, true); } foreach ($match[0] as $key) { $imgurl = $key; $imagename = basename($imgurl); if (file_exists('./$val/' . $imagename)) { continue; } $image = getimg($imgurl); file_put_contents($val . '/' . $imagename, $image); } //echo $str;
/** * Copy a file from any source to any destination * @param $source -- copy file from URL * @param $destination -- copy file to folder */ function copy_file($source, $destination) { $upload['name'] = ''; $upload['error'] = true; function getimg($url) { $headers[] = 'Accept: image/gif, image/x-bitmap, image/jpeg, image/pjpeg'; $headers[] = 'Connection: Keep-Alive'; $headers[] = 'Content-type: application/x-www-form-urlencoded;charset=UTF-8'; $user_agent = 'php'; $process = curl_init($url); curl_setopt($process, CURLOPT_HTTPHEADER, $headers); curl_setopt($process, CURLOPT_HEADER, 0); curl_setopt($process, CURLOPT_USERAGENT, $useragent); curl_setopt($process, CURLOPT_TIMEOUT, 30); curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); $return = curl_exec($process); curl_close($process); return $return; } $file = basename($source); $image_name = image_exists($destination, $file); $image = getimg($source); if ($image) { $fopen = file_put_contents($destination . '/' . $image_name, $image); if (!empty($fopen)) { $upload['name'] = $file; $upload['error'] = false; } } return $upload; }