Latest Posts on AzizSaleh.com Latest 10 blog/video blog posts. http://www.azizsaleh.com Sat, 21 Dec 2024 18:24:59 UTC Latest Posts http://www.azizsaleh.com http://www.azizsaleh.com/images/topLogo.gif 223 105 Netflix API 1.0 Wrapper is finally out http://www.azizsaleh.com/index.php/showPost/18 I was over Netflix and saw that their API had no PHP implementation. So I created this simple application that allows users to access Netflix's API via PHP. [url=http://www.azizsaleh.com/index.php/ScriptsAndResources/PHP-Netflix-API-Wrapper]Script URL[/url] [url=http://www.azizsaleh.com/work/Netflix-API/example.php]Demo[/url] [url=http://www.azizsaleh.com/index.php/Download/2/php-netflix-api]Download[/url] Hope you enjoy It :) If none of the APIs work, its probably because I have exceeded by maximum number of connections per day. Aziz http://www.azizsaleh.com/index.php/showPost/18 Sun, 27 Feb 2011 13:38:07 UTC Pacman like app http://www.azizsaleh.com/index.php/showPost/17 Its much more simpler than pacman, just going around and eating fruits. Later on I will edit it to actually have enemies to fight. This is my first Flex/Flash game. [[url=http://www.azizsaleh.com/index.php/Download/2/flex-fruit-eater-source]Download[/url]] [[url=http://www.azizsaleh.com/work/Games/fruitEater.swf]SWF File[/url]] http://www.azizsaleh.com/index.php/showPost/17 Fri, 31 Dec 2010 19:49:26 UTC Calling Javascript functions from PHP http://www.azizsaleh.com/index.php/showPost/16 If you have designed websites using jQuery, you might have noticed that you are limited to showing certain sections/parts of your websites with direct URL. This is due to the fact that it is mostly user interaction of clicking, mouseover, etc.. This is a small function that will allow you to call certain Javascript functions passed in the URL parameters. For example, if I would want a user to view the login screen I have on my website, they would visit: [url=http://www.azizsaleh.com/index.php/?js=login]http://www.azizsaleh.com/index.php/?js=login[/url] To pass parameters (pipe delimited), use: [url=http://www.azizsaleh.com/index.php/ResumeAndPortfolio/?js=showSection&jsp=2]http://www.azizsaleh.com/index.php/ResumeAndPortfolio/?js=showSection&jsp=2[/url] [php] <script type="text/javascript"> $(document).ready(function() { // Check for JS by URL // by azizsaleh @ azzisaleh.com <?php // Check if there is a javascript function if(isset($_GET['js'])) { // set a time out @ 100 milliseconds $js = 'setTimeout("'; $js .= $_GET['js'].'('; // Check for function paramters if(isset($_GET['jsp'])) { // Print variables $jsParamters = explode('|',$_GET['jsp']); for($x=0;$x<count($jsParamters);$x++){ $js .= "'".$jsParamters[$x]."',";} if(strlen($js) > strlen($_GET['js'])+13 ){ $js = substr($js,0,-1);} } $js .= ')",100);'; echo $js; } ?> }); </script> [/php] http://www.azizsaleh.com/index.php/showPost/16 Sat, 25 Dec 2010 19:40:55 UTC php_ssh2.dll VC6, VC7, VC8, VC9 http://www.azizsaleh.com/index.php/showPost/15 Just incase anyone needed it. They all are extracted from VC9 but used hex editor to fool PHP to think it was to which it is labeled. I am using it as VC6 and it works great. http://www.azizsaleh.com/index.php/showPost/15 Thu, 23 Dec 2010 17:33:34 UTC Hijacking, Bypassing, Defeating and Beating the Same Origin Policy http://www.azizsaleh.com/index.php/showPost/14 The same origin policy was created as a permission scheme for communication of websites on same/different servers using browser side languages, like Javascript. You might have ran into a problem trying to access properties of an Iframe of an external server, for example getting an element by point x & y, which I was trying to achieve when working on the flash click tracker ([url=http://www.azizsaleh.com/index.php/ScriptsAndResources/Flex-Click-Tracker]link[/url]). I then had to create an entirely new script, but still using virtually the same flash object and a PHP proxy that will allow me to control the iframe object to my needs. In my case, it will allow me to track the link click and get the actual link for processing (in case of advertisement, visiting the link). This is the basic idea I had: [img]http://azizsaleh.com/work/Bypass-Same-Origin-Policy/spsm.png[/img] You can view an actual demo here (make sure your ad blocker is off) and if it doesn't work refresh. [url=http://www.azizsaleh.com/work/Bypass-Same-Origin-Policy/example.php]Demo[/url] [url=http://www.azizsaleh.com/index.php/Download/2/flex-bypass-same-origin-policy]Download[/url] [url=http://www.azizsaleh.com/index.php/ScriptsAndResources/Flex-Bypass-Same-Origin-Policy]More Info[/url] http://www.azizsaleh.com/index.php/showPost/14 Mon, 13 Dec 2010 18:54:27 UTC Flash Link Tracker Using Javascript and Jquery http://www.azizsaleh.com/index.php/showPost/13 This is a flash object that overlays (using CSS) HTML object, like an iframe/div/span/images/etc. The width and height of the flash object is customizable. The flash object then calls back a javascript function, also customizable, when a click event occurs on that object. The only drawback is that the user must "double click" on the flash object. Since the first click is when the flash object is hidden. [url=http://www.azizsaleh.com/work/Flash-Click-Tracker/example.php]Demo[/url] [url=http://www.azizsaleh.com/index.php/Download/2/flex-click-tracker]Download[/url] http://www.azizsaleh.com/index.php/showPost/13 Sun, 05 Dec 2010 14:16:21 UTC Key Logger with Save, Email and Registry Save for Auto Load http://www.azizsaleh.com/index.php/showPost/12 This application allows you to store user input in x milliseconds, store the strokes in a file every x milliseconds, and email that file using SMTP email login and attachment every x milliseconds. You can create a dummy email account to send the information with in the event your application was decoded. This application features another option that allows you to store the executable path in the system registry for automatic program load on system startup. Part 1: [movie]6AVLuJnZdL8[/movie] Part 2: [movie]-gDZzdLmYFY[/movie] http://www.azizsaleh.com/index.php/showPost/12 Sat, 04 Dec 2010 20:19:37 UTC PHP Object Merge and In Object Functions http://www.azizsaleh.com/index.php/showPost/11 These are two functions to manipulate PHP objects. The first function is similar to array_merge function in that it merges two objects based on an index. The second function in_object also acts like in_array to which it checks if a certain index exists in an array at a specific value. Hopefully someone finds it helpful. [php] /* Object merge and in Object functions */ function object_merge($objectFrom,$objectTo,$indexUse) { $objectReturn = array(); foreach($objectFrom as $curObject) { $index = in_object($indexUse,$curObject->$indexUse,$objectTo,true); if(is_int($index)) { foreach($objectTo[$index] as $indexName => $indexValue) { $curObject->$indexName = $indexValue; } } $objectReturn[] = (object) $curObject; } return $objectReturn; } function in_object($searchFor,$searchValue,$objectSearch,$returnResult) { foreach($objectSearch as $index => $thisObject) { if($thisObject->$searchFor == $searchValue) { if($returnResult) { return $index; } else { return true; } } } return false; } // Usage $obj1[0] = (object) array('catId' => 1, 'catName' => 'Name'); $obj1[1] = (object) array('catId' => 2, 'catName' => 'Name2'); $obj2[0] = (object) array('catId' => 1, 'catDesc' => 'Desc'); $obj2[1] = (object) array('catId' => 2, 'catDesc' => 'Desc2'); $obj_merged = object_merge($obj1,$obj2,'catId'); print_r($obj_merged); [/php] http://www.azizsaleh.com/index.php/showPost/11 Wed, 01 Dec 2010 18:15:26 UTC Flash Link Hider http://www.azizsaleh.com/index.php/showPost/10 This simple, yet fully customizable flash object allows you to hide your links based on a simple coding class I wrote. You can view the flash object by [url=http://www.azizsaleh.com/index.php/ScriptsAndResources/Flex-Link-Hider]clicking here[/url]. The link contains sample implementation in PHP and a working demo to see how it works. http://www.azizsaleh.com/index.php/showPost/10 Thu, 25 Nov 2010 09:40:52 UTC Currency Converter Using Visual Basic http://www.azizsaleh.com/index.php/showPost/9 This tutorial will show you how to create a currency converter the easy way. It covers downloading website contents (from XE) and using regular expression to match the rates. You can download the source code by [url=http://www.azizsaleh.com/index.php/Download/2/vb-currency-converter]clicking here[/url]. The video is composed of two parts, all uploaded on youtube. Part 1: [movie]OV4qAwSFZcQ[/movie] Part 2: [movie]mmAfXTFefQ8[/movie] http://www.azizsaleh.com/index.php/showPost/9 Thu, 25 Nov 2010 08:33:29 UTC