[Chrome Extension]Reverse IP Domain Check

Okay, here’s another small nifty chrome extensions of mine, with this nice looking extension you’ll be able to do a reverse domain check which means you’ll be able to find out which other domain names are known to be hosted on the same server as you.

The extension can be found HERE and here’s a little screenshot with the extension in action.

As usual thanks for any kind of suggestion or feedback, enjoy.

[PHP] Site Configuration v0.3

Well, I’ve been working today on my site configuration class, the class that helps you to separate js, and css files based on templates. Well not only for css and js. it’s easy to be extended with new code templates but that I will leave to your need of purpose.

In this new version I have included a small new thinks like:

  • – [FIX ] Error with default tempalte
  • – [NEW] Now you can specify wherever you want to include the default template scripts in an template or not. (You can see it later in the example code)
  • – [NEW] Added an new future to sort the include array based on the array itself or by key. ( Review the example code for more information)
  • – [NEW] Added normal and reverse sorting abilities. ( Review the example code for more information)

Well the new version can be found HERE and the example code with the new futures can be found HERE


As always I’m thankful for any kind of feedback and suggestion.

[PHP] IP Blocking Class

Hello everyone, it’s been a while since my last post so it’s time for a new one, yesterday night I had a nice beer and a good idea on writing a little class to help me block ip addresses ( I know that I can do it with htaccess). I’ve done it in php since I wanted to have a little more control and I had the idea on further expanding it in the future, so enough said here’s the code, as usual feedback and any kind of suggestions are welcome, I wanna give out a big thx to my bro Denat my always tester.

The code can be found: Here

[PHP] Easy CSS and Javascript handling for different templates

Hello everyone it’s been a while since my last blog post, it’s because I’m pretty busy with work and trying to increase my programming skills. Anyway today I brought you people a nice PHP Class which could improve your sites performance by helping you handle css and javascript’s.

Let’s assume you have your own CMS system with a lot of templates and you haven’t yet coded a logic to seperate css and javascripts for your various templates, currently all your templates load the same css and javascript etc which are being fetched out of arrays, files or something else “That’s waste of bandwidth and can cause a lot of hours resolving javascript conflicts etc” this is the moment my class can help you separate things.

Let’s say you have 3 templates: section, home and article and you want each of them to have their own css, javascripts with the class I wrote you will be able to do something like this.

$site = new Configuration();

$site->css = array(‘section’ => array(‘first.css’, ‘second.css’, ‘third.css’),
‘home’ => array(‘style.css’),
‘article’ => array(‘jquery.css’, ‘tools.css’, ‘grid.css’)

$site->js = array(‘section’ => array(‘first.js’, ‘second.js’, ‘third.js’),
‘home’ => array(‘super.js’),
‘article’ => array(‘jquery.js’, ‘tools.js’, ‘grid.js’)

with the code above we have just associated css and javascripts to three templates, this code part comes usually comes into your bootstrap-per or config files whatever your CMS uses to initialize classes and stuff.

Let’s also say you also have a variable which holds the current template name let’s call it $template now with this variable we can do something like this.

$template = ‘section‘;
$site->get_output(‘css’, $template); // This function returns html output it also has a third parameter which if false returns an array please return to the source code and read the parameter comments.

this part would be called before the <head> tag ends on your page, after you would view the source code you would see that all scripts for this template are loaded of course you still need to make create a template logic by that I mean a variable which holds the template name to automate the process and also the path to the css and js need to be changed but this is all easy done because I’ve included a small template logic to the class that lets you easy manipulate with it and also add your custom script templates (preffix and suffix) as you will see from the source code but also you will see that I have used PHP’s magic getter and setter functions which will let you add custom arrays for many different things but all this can only be achieved by further exploring the class.

<link rel=”stylesheet” type=”text/css” href=”first.css”>
<link rel=”stylesheet” type=”text/css” href=”second.css”>
<link rel=”stylesheet” type=”text/css” href=”third.css”>

<script type=”text/javascript” src=”first.js”></script>
<script type=”text/javascript” src=”second.js”></script>
<script type=”text/javascript” src=”third.js”></script>

I wont further explain the class because I seem to confuse everything I’m kind tired so take a look at the source code which includes a working example code.

I welcome every kind of feedback or suggestions, also If you have your own algorithm that handles the logic of implementing js and css scripts let me know I would like to learn more.

Here’s a little screenshot I’ve took

This image shows only dummy tests.

If you like to download the file it can be found here it also includes a working example of the code, but the code is self explaining so you wont have trouble using it.

Here’s also a Pastebin link

P.s. sorry for my bad English, but I’m pretty tired ^.^

[Chrome Extension] Down For Everyone Or Just Me

Okay it’s been a while since my last post, which was pretty only a mini snippet today I will post something more useful at least I think so I’ve been using this site for a quit while almost everyone has used it once or more I’m talking about www.downforeveryoneorjustme.com

I found it sad that there was no chrome extension to check wherever a page is down or not, so I’ve decided to take a thew hours to code it on my own. I must say I haven’t asked the owner of the site because I found no contact information to ask him but If he sees this please inform me If you want me to remove this extension. This extension uses the site down for everyone or just me to check if a site is down for everyone or just you it response with a text saying Site is Up or Site is Down.

To install the plugin click here also here’s a screenshot of the actual plugin if you have any suggestion to improve this plugin please let me know