This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* shits */ | |
| header('Content-Type: text/html; charset=utf-8'); | |
| set_time_limit(0); | |
| date_default_timezone_set("Europe/Bucharest"); | |
| function sopen($url_page){ | |
| $ua = "Googlebot/2.1 (+http://www.google.com/bot.html)"; // google :D | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url_page); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $curl = file_get_content("http://www.accuweather.com/ro/ro/bucuresti/bucharest/hourly.aspx"); | |
| /* Ora */ | |
| preg_match_all("(<div class=\"hbhItem textBold\">(.*?)</div>)s", $curl, $out); | |
| //$ora = strtolower(trim($out[1][0])); | |
| /* Temperatura */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('admin_menu', 'addMetaBox'); | |
| add_action('save_post', 'saveMetaData', 10, 2); | |
| add_action('admin_head', 'embedUploaderCode'); | |
| //Define the metabox attributes. | |
| $metaBox = array( | |
| 'id' => 'my-meta-box', | |
| 'title' => 'My Meta Box', | |
| 'page' => 'page', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /cache/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-12345678-1']); | |
| _gaq.push(['_setDomainName', 'yoursite.com']); | |
| _gaq.push(['_addIgnoredRef', 'yoursite.com']); | |
| _gaq.push(['_trackPageview']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /cache/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Caching something with just one function | |
| * Licensed under WTFPL | |
| */ | |
| function open($url){ | |
| // settings | |
| $cachetime = (60 * 60 * 24 * 7); //one week | |
| $where = "cache"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $fsource = fopen('x.txt','r'); | |
| function save_image($img,$fullpath){ | |
| $ch = curl_init ($img); | |
| curl_setopt($ch, CURLOPT_HEADER, 0); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); | |
| $rawdata=curl_exec($ch); | |
| curl_close ($ch); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* i hate haotik | |
| LICENSE: | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |