Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts

PHP Calendar

If we want our web visitors to input a date by clicking a visual interface, we can use these files created by Richard James Kendall and you can download it here (2 kb)

Just extraxt and put the files (date.html, date.css, date_chooser.php) in a PHP enabled directory and point your browser at date.html, it is all fairly self explanatory.



Securing Logo/Image

Sometime, you may want to secure a logo (image) on your user-interface to avoid some replacement.
In that case we can encode the image to a text-base code. To do that we need img2php class which can be downloaded from phpclasses.org or you can download it here (12.7kb including samples) 

Following are the example of steps after extracting the package:
1. write this script
<?php
require_once("img2php.class.php");
$t = new img2php;
$t->generate("images/"); //place image(s) in a subfolder
?>

2. run the script and the result should be similiar to this:
<?php
        
/**
 * gonximage class : Generated based on directory (images/)
 * 
 * @package 
 * @author Ben Yacoub Hatem <hatem@php.net>
 * @copyright Copyright (c) 2004
 * @version $Id$ - 2009-03-11 11:03:42 - gonximage.class.php
 * @access public
 **/
class gonximage{
    /**
     * Constructor
     * @access protected
     */
    function gonximage(){
        
    }
    
    /**
     * Return image based on it name
     * @access public
     * @return void 
     **/
    function getimage($img){
        switch($img){

            case "orchid_jpg": 
                gonximage::orchid_jpg();
            break;

        } // switch
    }
    function orchid_jpg() 
    {
        header("Content-type: image/jpg");
        header("Content-length: 3980");
        echo base64_decode(
'/9j/4AAQSkZJRgABAgAAAQABAAD/4QDmRXhpZgAASUkqAAgAAAAFABIBAwAB'.
'AAAAAQAAADEBAgAcAAAASgAAADIBAgAUAAAAZgAAABMCAwABAAAAAQAAAGmH'.
'BAABAAAAegAAAAAAAABBQ0QgU3lzdGVtcyBEaWdpdGFsIEltYWdpbmcAMjAw'.
'OTowMToxMiAyMjoyOTo0MwAFAACQBwAEAAAAMDIyMJCSAgAEAAAANDE4AAKg'.
'BAABAAAAjAAAAAOgBAABAAAAtAAAAAWgBAABAAAAvAAAAAAAAAACAAEAAgAE'.
'AAAAUjk4AAIABwAEAAAAMDEwMAAAAAAAAAAA/8AAEQgAtACMAwEhAAIRAQMR'.
'Af/bAIQA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Chf8AtM0rUJsg'.
'HDHDeSKEjS2r3Nu6BPfis6PVChscA0hWxLaJFcxcuHcR5AxS/wCFdihJMgcj'.
't+akbf8ATtohzdcKeeDUt03NQwLsW+aojtOCpFpoKET8fmp72o/pX7fBHej1'.
'J3uNcMsSaCtBoEmjmMVINahgg+KE62hUQXYOe3TzVTqSubYVAeWMn80NF2yi'.
'7mBPEAxUl4yJA9ppSRpEzWW7fqXEtjG4gUsryy3dQWW2zW0wpmAAMCtO9rpV'.
'rgZQJAHjtiskGoG1kMgAiBU7MQohBnkgRUjbd1ltm2m0TnjJHcTXPeWYk0xU'.
'NaKQPAFYBNSYK0UF2/p4Dactv9Pb5ODThcRV22wXnlu1BR6vcz9TLPtU119q'.
'qQeo0ikdqdpRta5e/wCkhI+TgUh4qqKqtdF3wiExVN656FlNwXeE7D+1BSX7'.
'j7/SJxgmexivWrxtXGK5BEc4qQLbuL28RMznihu2SssIAOY8VAmK8BUm96YA'.
'IpIOK0ChOvZtyioZJCzAHFUekFX7o+eaIU1zYDltznuDgVFeGcCY5pgpXYCi'.
'FxhZNqRsZtxxk+KQ2yAjBzkLmnrF9LW5TL3SOcAYmgkXnS4zsBBZifx2pPya'.
'k2TtPtS97EQWJFIZXu1CaOaaaiXRJlh81J1NGGF9yC2QRg5NPF1P6gXnHMCg'.
'prlxVB2ruY9+AtSXAWPME5OaQHvt4oWEZPekPAYnFX2Rt06uYiyrEgfqbAFC'.
'c6OkV7kQKk8eDQqmc1J51igqQ0HWKZUSxWrUlqsRicHBqstssEqqz8UETWw9'.
'gseR4qJ7am0W7gUolz1/igbO4eKgJAN0e1Ux/wALYXtcutu94gCkJHADECh7'.
'VJ5hFBuM80J5uaGpDT7hRVF//9k='.
'');
    }


}
?> 

3. copy and save the result above (for instance encode.class.php)
4. write a script to show the image (show.php):
<?php
include "encode.class.php";
$img = new gonximage();
$imgfile = "orchid_jpg";
$img->getimage($imgfile);
 ?>


Financial Class

This class is made by Enrique Garcia to move excel functions into php class. This is very powerful to help develop web based financial system. The functions comprise FV (Future Value), PV (Present Value), PMT (Payment), NPER (Number of Periode), etc.

This class can be downloaded from phpclass.com or here (12kb) including an example file

Classes for numerical data manipulation

For complicated numerical calculation we can use these classes instead of using php built-in functions in which we still write some long lines of codes. These classes can be downloaded from phpclasses.com or from here (9kb).

Files included in the package are:

class.complex.php
Class for manipulating complex numbers
class.hist.php
Class to generate a histogram from an array of data
pkg.arith.php
A set of simple arithmetic functions
pkg.geom.php
Geometrical functions
pkg.stats.php
Statistical functions for unidimensional data arrays
pkg.trig.php
Trigonometric functions to complement the ones in PHP
utils.inc.php
Utility functions (error handling, etc.) to be used by
other packages or classes in numPHP

Multilanguage Support

If we may want to support multilanguages to our web we keep all languages as variables in different files. Usually we provide them in a specific folder for practicality. Below is the screenshot using two languages as choices:


here is the scripts:
index.php
<?php
session_start();
$_SESSION['lang'] = $a;
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form name="form1" method="post" action="?lang=">
Choose Language :
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<?php
if(($_GET['lang'] == "english") || (empty($_GET['lang']))) {
?>
<option value="?lang=indonesian">Indonesian</option>
<option value="?lang=english" selected>English</option>
<?php
} else {
?>
<option value="?lang=indonesian" selected>Indonesian</option>
<option value="?lang=english">English</option>
<?php
} // end else
?>
</select>
</form>
<p>
<?php
if($_GET['lang'] == "english") {
$a = include "lang/eng.php";
} else if ($_GET['lang'] == "indonesian") {
$a = include "lang/ind.php";
} else {
$a = include "lang/eng.php";
}
print "$language $home<br>$faq<br>$tes";
?>

eng.php (put it in subfolder lang)
<?php
$home = "Home";
$faq = "About Us";
$tes = "Help";
?>

ind.php (put it in subfolder lang)
<?php
$home = "Menu Utama";
$faq = "Tentang Kami";
$tes = "Bantuan";
?>

you may download the scripts here (2kb).

Restricting admin page to be accessed from only certain ip addresses

If you want to apply someting more secure than just a password to access your admin page you can restrict your admin page to be accessed from only one ip address.

First you should know your ip address. If you don't know you can run this script: 
  <?php
  echo "IP anda : " . $HTTP_SERVER_VARS['REMOTE_ADDR'];
?>

Then in the admin area, for example in "administrator/index.php", insert this script on the topmost:

<?php
  $ip = "127.0.0.1" // your ip
  if($HTTP_SERVER_VARS['REMOTE_ADDR'] != $ip) {
  header("location: ../index.php");
  } else {
  Setcookie("ip",$ip); }
?>

Then for each file in the admin area, insert this script:

<?php
  $ip = $_COOKIE['ip']; // call cookie ip
  if($HTTP_SERVER_VARS['REMOTE_ADDR'] != $ip) {
  echo "You don't have right to access this page!";
  } else {
  // your menu here
  }
?>

Please remember to call cookies or session for your admin username and pasword as well. The example above only call cookie for ip address. 

You may want to apply more than one ip address and store the ip address list in database as following:

CREATE TABLE `web`.`tb_admin` (
  `id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
  `ip` VARCHAR( 30 ) NOT NULL
  ) 
 
  INSERT INTO `web`.`tb_admin` (  `id` ,  `ip`  )
  VALUES (1 , '127.0.0.1');

Config.php
<?php
$host = "localhost";
$user = "root";
$pass = "";
$konek = mysql_connect($host,$user,$pass) or die("Check host,user,or password");
$select_db = mysql_select_db("web");
?>

Then in the index.php in the admin folder, you can insert this script:

index.php

<?php
  include("config.php");
  $ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
  $valid_ip = mysql_query("SELECT * FROM tb_admin WHERE ip='$ip'");
  if (!= $valid_ip) {
  echo "You don't have permission to access this page!";
  } else {
  // your menu goes here...
  }
?>

PageRank Checker

If you want to create a pagerank checker at your web site and you want to download the script, you may download it from here (2kb)!!

and here is the screenshot:

Checking Domain Availability

Below is a script for checking domain availabilityL

<?
error_reporting(0);
set_time_limit(0);
ob_start();

$ext = array(
'.com' => array('whois.crsnic.net','No match for'),
'.net' => array('whois.crsnic.net','No match for'),
'.biz' => array('whois.biz','Not found'),
'.mobi' => array('whois.dotmobiregistry.net', 'NOT FOUND'),
'.tv' => array('whois.nic.tv', 'No match for'),
'.in' => array('whois.inregistry.net', 'NOT FOUND'),
'.info' => array('whois.afilias.net','NOT FOUND'),
'.co.uk' => array('whois.nic.uk','No match'),
'.co.ug' => array('wawa.eahd.or.ug','No entries found'),
'.or.ug' => array('wawa.eahd.or.ug','No entries found'),
'.nl' => array('whois.domain-registry.nl','not a registered domain'),
'.ro' => array('whois.rotld.ro','No entries found for the selected'),
'.com.au' => array('whois.ausregistry.net.au','No data Found'),
'.ca' => array('whois.cira.ca', 'AVAIL'),
'.org.uk' => array('whois.nic.uk','No match'),
'.name' => array('whois.nic.name','No match'),
'.us' => array('whois.nic.us','Not Found'),
'.ac.ug' => array('wawa.eahd.or.ug','No entries found'),
'.ne.ug' => array('wawa.eahd.or.ug','No entries found'),
'.sc.ug' => array('wawa.eahd.or.ug','No entries found'),
'.ws' => array('whois.website.ws','No Match'),
'.be' => array('whois.ripe.net','No entries'),
'.com.cn' => array('whois.cnnic.cn','no matching record'),
'.net.cn' => array('whois.cnnic.cn','no matching record'),
'.org.cn' => array('whois.cnnic.cn','no matching record'),
'.no' => array('whois.norid.no','no matches'),
'.se' => array('whois.nic-se.se','No data found'),
'.nu' => array('whois.nic.nu','NO MATCH for'),
'.com.tw' => array('whois.twnic.net','No such Domain Name'),
'.net.tw' => array('whois.twnic.net','No such Domain Name'),
'.org.tw' => array('whois.twnic.net','No such Domain Name'),
'.cc' => array('whois.nic.cc','No match'),
'.nl' => array('whois.domain-registry.nl','is free'),
'.pl' => array('whois.dns.pl','No information about'),
'.pt' => array('whois.dns.pt','No match')
);
function return_status($domain, $status)
{
global $extension;
$domain = trim($domain);
$wt = ($status == 'available') ? 'bold' : 'normal';
if($status == 'invalid' && $extension == 'org') { $status .= ' (.org WHOIS prevents request)'; }

echo "<div style=\"font-weight:$wt\">$domain is $status!</div>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Check Your Domain Availability</title>
</head>
<body>
<table width="75%" border="0" align="center" cellpadding="5" cellspacing="1">
<tr>
<td height="30" align="center"><h3>Check Your Domain Availability</h3></td>
</tr>
<tr>
<td align="center"><form action="" method="post" name="frmsearchposition" class="frmstyle" id="frmsearchposition">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr align="left">
<td width="20%" align="left" valign="middle">You can insert one or some domains - 1 per line. (ex: yahoo.com) </td>
<td width="40%"><textarea name="domains" cols="55" rows="5" class="frmelements_ta" id="domains"><?=$sUrl?>
</textarea></td>
<td><input type="submit" name="Submit" value="Go" /></td>
</tr>
</table>
</form></td>
</tr>

<tr>
<td width="70%" align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td align="left"><h3>Results</h3></td>
</tr>
<tr>
<td align="left" class="tbl_texttd"><table width="740" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left"><?
if(strlen($_POST['domains']) > 0)
{
$domains = explode("\n", $_POST['domains']);
echo '<h5>Checking ' . count($domains) . ' domains:</h5><br />';
echo (isset($_POST['save'])) ? 'Processing results, Please wait...<br /><br />' : null;

foreach($domains as $domain)
{
unset($buffer);
preg_match('@^(http://www\.|http://|www\.)?([^/]+)@i', $domain, $matches);
$domain = $matches[2];

$tld = explode('.', $domain, 2);
$extension = strtolower(trim($tld[1]));

if(strlen($domain) > 0 && array_key_exists('.' . $extension, $ext))
{
$server = $ext['.' .$extension][0];

$sock = fsockopen($server, 43) or die('Error Connecting To Server:' . $server);
fputs($sock, "$domain\r\n");

while( !feof($sock) )
{
$buffer .= fgets($sock,128);
}

fclose($sock);
if($extension == 'org') echo nl2br($buffer);

if(eregi($ext['.' . $extension][1], $buffer)) { return_status($domain, 'available'); }

else { return_status($domain, 'taken'); }
}
else
{
if(strlen($domain) > 0) { return_status($domain, 'invalid'); }
}

ob_flush();
flush();
sleep(0.1);
}

}
else
{
echo 'Please enter one or more domains!';
}
?>
<div class="div"></div></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>