This file contains 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 | |
// Maximum size of the uploaded image | |
define('MAX_SIZE','100'); | |
// Width & Height of the thumbnail in pixels | |
define('WIDTH','150'); | |
define('HEIGHT','100'); | |
// Thumbnail creation function | |
function makeThumb($img_name,$file_name,$new_width,$new_height) | |
{ | |
// Get the extension of the image |
This file contains 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
DROP TABLE IF EXISTS `member_table`; | |
CREATE TABLE `member_table` ( | |
`id` tinyint(4) NOT NULL AUTO_INCREMENT, | |
`member_name` varchar(20) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; | |
-- ---------------------------- | |
-- Records of member_table | |
-- ---------------------------- |
This file contains 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 | |
$filename = $_GET['filename']; | |
// Modify this line to indicate the location of the files you want people to be able to download | |
// This path must not contain a trailing slash. ie. /temp/files/download | |
$download_path = ""; | |
// Make sure we can't download files above the current directory location. | |
if(eregi("..", $filename)) die("I'm sorry, you may not download that file."); | |
$file = str_replace("..", "", $filename); | |
// Make sure we can't download .ht control files. | |
if(eregi(".ht.+", $filename)) die("I'm sorry, you may not download that file."); |
This file contains 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
label | |
{ | |
width: 15em; | |
float: left; | |
text-align: left; | |
margin-right: 0.5em; | |
display: block; | |
color: #990000; | |
font-weight: bold; | |
font-family: Verdana, Arial, Helvetica, sans-serif; |
This file contains 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 | |
function wordpress_breadcrumbs() { | |
$delimiter = '»'; | |
$name = 'Home'; //text for the 'Home' link | |
$currentBefore = '<span class="current">'; | |
$currentAfter = '</span>'; | |
if ( !is_home() && !is_front_page() || is_paged() ) { | |
echo '<div id="crumbs">'; | |
global $post; | |
$home = get_bloginfo('url'); |
This file contains 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
/*jquerycssmenu_start*/ | |
#nav_container{ | |
background:url(images/nav_bg.jpg) repeat-x; | |
width:1000px; | |
} | |
.jquerycssmenu{ | |
width:auto; | |
} | |
.jquerycssmenu ul{ | |
margin: 0; |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<title>Clinet side printer version</title> | |
<style type="text/css"> | |
.style1 {color: #0033FF} | |
.style3 { | |
font-size: 13px; | |
font-family: "Times New Roman", Times, serif; | |
} |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Google Map</title> | |
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=Your API Key" type="text/javascript"></script> | |
</head> | |
<body onunload="GUnload()"> | |
<div id="map" style="width: 550px; height: 450px"></div> | |
<script type="text/javascript"> | |
//<![CDATA[ |
This file contains 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 | |
$taxonomy_term_description = term_description( '', get_query_var( 'taxonomy' ) ); | |
if($taxonomy_term_description != '') : ?> | |
<div class="tag-desc"><?php echo $taxonomy_term_description; ?></div> | |
<?php endif; ?> |
This file contains 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 | |
//Register product categories | |
$labels = array( | |
'name' => _x( 'Product Categories', 'taxonomy general name' ), | |
'singular_name' => _x( 'Product Category', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Product Categories' ), | |
'all_items' => __( 'All Product Categories' ), | |
'parent_item' => __( 'Parent Category' ), | |
'parent_item_colon' => __( 'Parent Category:' ), | |
'edit_item' => __( 'Edit Product Category' ), |
OlderNewer