Category Archives: URL Management

PHP Classified Script for URL Management

YankeeDownload regularly update datas, value and software summary of ClassifiedScript.Org 5.1 full download version from the vendor, so sometimes may be somewhat outdated. We remember: software piracy is illegal by using ClassifiedScript.Org 5.1 keygen, cracks, serial numbers, registration codes, key generators is not legal and prevent future ClassifiedScript.Org editions. Our download locations are directly from author sites.

<?php

 $featured_classifieds = $data->select ( "Classified" ,"AdID, AdTitle" , array ( "IsFeatured" => '1' ), 0 , intval ( $app_init_data["SponsoredAdsListingPage"] ) , "DateAdded desc" ) ;

 $page_size = intval ( $app_init_data["MaxListingsPerPage"] ) ;
 $like_array = array ( ) ;
 $array_to_db = array ( "IsActive" => 1 , "IsPosted" => 1 ) ;
 $greater_array = array ( ) ;
 $smaller_array = array ( ) ;
 $category_id_selected = 0 ;

 $price_alt = array (
 1 => 0 ,
 3 => "Free",
 4 => "Please Contact",
 5 => "Swap / Trade"
 ) ;

 $ordered_by = "DateAdded desc" ;
 $category_query_string = "/" ;
 if ( ! empty ( $qstring[1] ) )
 {
 if ( strchr ( $qstring[1] , ":" ) )
 {

 $parameters = $qstring[1] ;
 $category_query_string = "/" ;
 }
 else
 {
 $category = $data->select ( "SEF_URL" , "*" , array ( "URL" => $qstring[1] ) ) ;
 $category = $category[0] ;

 $parameters = $qstring[2] ;

 $category_query_string = "/".$qstring[1]."/" ;
 $category_id_selected = intval ( $category["EntityID"] ) ;
 //$array_to_db["CategoryID"] = intval ( $exp_send["cat"] ) ;

 $selected_category_detail = $data->select ( "Category" , "*" , array ( "CategoryID" => intval ( $category["EntityID"] ) ) ) ;
 $selected_category_detail = $selected_category_detail[0] ;

 $app_init_data["SEOTitle"] = $selected_category_detail["SEOTitle"] == "" ? $selected_category_detail["CategoryName"]." - ".$app_init_data["SiteTitle"] : $selected_category_detail["SEOTitle"] ;
 $app_init_data["SiteDescription"] = $selected_category_detail["SEODescription"] == "" ? $app_init_data["SiteDescription"] : $selected_category_detail["SEODescription"]  ;
 $app_init_data["SiteKeyword"] = $selected_category_detail["SEOKeywords"] == "" ? $app_init_data["SiteKeyword"] : $selected_category_detail["SEOKeywords"]  ;

 $category_top_banner["MarketingScript"] = $selected_category_detail["TopBanner"] ;
 $category_top_banner["MarketingScript_left"] = $selected_category_detail["LeftBanner"] ;
 $category_id_selected = intval ( $category["EntityID"] ) ;
 $like_array["CategoryStack"] = "z".$category_id_selected."Z" ;
 }
 }

 $param = explode ( "|" , $parameters ) ;
 $exp_send = array ( ) ;
 if ( ! empty ( $param ) )
 {
 foreach ( $param as $val )
 {
 if ( $val!= "" )
 {
 $var_t_array = explode ( ":" , $val ) ;
 $exp_send[$var_t_array[0]] = $var_t_array[1] ;
 }
 }
 }

 if ( isset ( $exp_send["q"] ) )
 {
 $like_array["SearchKeywords"] = $exp_send["q"] ;
 }
 if ( isset ( $exp_send["p"] ) )
 {
 $page_number = intval ( $exp_send["p"] ) ;
 }
 if ( $exp_send["gal"] != "" )
 {
 $gallery_set = intval ( $exp_send["gal"] ) ;
 }
 else
 {
 $gallery_set = intval ( $app_init_data["DefaultViewGallery"] ) ;
 }
 if ( $exp_send["typ"] != "" )
 {
 $array_to_db["IsOffer"] = $exp_send["typ"] ;
 }

 if ( isset ( $exp_send["p1"] ) )
 {
 $smaller_array["Price"] = floatval ( $exp_send["p1"] ) ;
 }
 if ( isset ( $exp_send["p2"] ) )
 {
 $greater_array["Price"] = floatval ( $exp_send["p2"] ) ;
 }
 if ( isset ( $exp_send["ord"] ) )
 {
 switch ( $exp_send["ord"] )
 {
 case "dasc" :
 $ordered_by = "DateAdded asc" ;
 break ;
 case "ddesc" :
 $ordered_by = "DateAdded desc" ;
 break ;
 case "plow" :
 $ordered_by = "Price asc" ;
 break ;
 case "phi" :
 $ordered_by = "Price desc" ;
 break ;
 }
 }

 $data->set_greater ( $greater_array ) ;
 $data->set_smaller ( $smaller_array ) ;
 $data->set_like ( $like_array ) ;

 $classified = $data->select ( "Classified" ,"*" , $array_to_db , $page_number*$page_size , $page_size , $ordered_by ) ;
 $total_ads = $data->get_num_records ( ) ;

 $data->set_greater ( $greater_array ) ;
 $data->set_smaller ( $smaller_array ) ;
 $data->set_like ( $like_array ) ;
 $array_to_db["IsOffer"] = "0" ;
 $wanted_total = $data->count_record ( "Classified" , $array_to_db ) ;

 $data->set_like ( $like_array ) ;
 $data->set_greater ( $greater_array ) ;
 $data->set_smaller ( $smaller_array ) ;
 $array_to_db["IsOffer"] = 1 ;
 $offering_total = $data->count_record ( "Classified" , $array_to_db ) ;

 include ( "theme/".$app_init_data["CurrentSkin"]."/listing_classified.php" ) ;

?>

&amp;nbsp;

PHP PG Social Networking Software URL Management

Start your own professional Social Networking site with Pilot Group Social Networking Software! It’s a ready made social networking package for establishing an online presence. Multi-level administration system! New Design! With PG Social Networking Software JULY-2008, you can create a high-impact site within the shortest possible time and at a fraction of costs. Fully customizable script allows modifying site options to meet your demands. Attract lots of users with your Social Site! It has been developed in collaboration with real end users, whose requests and suggestions are reflected in its rich functionality and a flexible and user-friendly web-based admin area.

 

 

<?php
require("./FrontSql.inc.php");
$db = new FrontSQL($DBName);
$showtable = true;
if (!empty($AddBrand)) {
 $db->add_table($BDetail,$table,$pageid,$name,$content,$picturepath,$viewnum,$rating,$ratenum,$source,$sourceurl,$isdisplay);
 $showtable = false;
 $message = "table : $table \n";
 $message .= "name: $name \n";
 mail("$adminemail","$front_subemailtitle","$message");
}
if (empty($page)){
$page = 0;
}
?>
<html>
<head>
<title><?php print "$front_submission"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print "$front_charset"; ?>">
<link rel="stylesheet" href="./style/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&amp;&amp;(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<?php
include("top.php3");
?>
<table width="770" border="0" cellspacing="1" cellpadding="0" align="center">
 <tr>
 <td width="160" valign="top">
 <table width="160" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td><img src="./images/left_search.gif" width="152" height="16"></td>
 </tr>
 <tr>
 <td>
 <form action="<? print "$searchurl"; ?>" method="POST">
 <input type="hidden" name="table" value="<?php print "$table"; ?>">
 <table border="0" cellspacing="0" cellpadding="0" width="145" align="right">
 <? dispsearchoption($table); ?>
 <tr><td><input type="submit" name="searchsubmit" value="<?php print "$front_searchsubmit"; ?>"></td></tr>
 <tr><td>&amp;nbsp;</td></tr>
 </table>
 </form>
 </td>
 </tr>
 </table>

 </td>
 <td bgcolor="#FFFFFF" valign="top" width="410">
 <table width="410" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td bgcolor="#F2F2F2">::<?php print "$front_submission"; ?></td>
 </tr>
 <tr>
 <td><?php
if ($showtable){
 print "
<form action=\"$PHP_SELF\" method=\"POST\">
<input type=\"hidden\" name=\"isdisplay\" value=\"0\">
<input type=\"hidden\" name=\"table\" value=\"$table\">
<input type=\"hidden\" name=\"pageid\" value=\"$defaultpageid\">
<input type=\"hidden\" name=\"picturepath\" value=\"$defaultpicturepath\">
<input type=\"hidden\" name=\"viewnum\" value=\"$defaultviewnum\">
<input type=\"hidden\" name=\"rating\" value=\"$defaultrating\">
<input type=\"hidden\" name=\"ratenum\" value=\"$defaultratenum\">"
;
print "<table border=0 cellpadding=2 cellspacing=2>\n";
print "<tr><td align=\"right\">$front_submititle :</td><td><input type=text name=\"name\" size=\"40\" value=\"\"></td></tr>\n";
print "<tr><td align=\"right\">$front_submitcontent :</td><td><textarea name=\"content\" cols=\"40\" rows=\"10\"></textarea></td></tr>\n";
print "<tr><td align=\"right\">$front_submitsource :</td><td><input type=text name=\"source\" size=\"40\" value=\"\"></td></tr>\n";
print "<tr><td align=\"right\">$front_submitsourceurl :</td><td><input type=text name=\"sourceurl\" size=\"40\" value=\"\"></td></tr>\n";

$DetailFieldName = $db->get_detailfield($table);
if (!empty($DetailFieldName)) {
 while ( list($key,$val)=each($DetailFieldName) ) {
 $CName = stripslashes($val["FCName"]);
 $FEName = stripslashes($val["FEName"]);
 $devalue = stripslashes($val["defaultvalue"]);
 $isoption = stripslashes($val["isoption"]);
 switch($isoption){
 case "1":
 $option = $db->get_optionnamebyfield($table,$FEName);
 print "<tr><td align=\"right\">$CName :</td><td><select name=\"BDetail[]\">";
 if (!empty($option)){
 while (list($key,$val)=each($option)) {
 $optionname = stripslashes($val["optionname"]);
 print "<option value=\"$optionname\">$optionname</option>";
 }
 }
 print "</select></td></tr>\n";
 break;

 case "0":
 print "<tr><td align=\"right\">$CName :</td><td><input type=text name=\"BDetail[]\" size=\"40\" value=\"$devalue\"></td></tr>\n";
 break;

 case "2":
 print "<tr><td align=\"right\">$CName :</td><td><textarea name=\"BDetail[]\" cols=\"40\" rows=\"10\">$devalue</textarea></td></tr>\n";
 break;

 }
 }
}
print  "<tr><td></td><td><input type=\"submit\" name=\"AddBrand\" value=\"$front_submitadd\"></p>
</table>\n"
;
print "</form>";
}
else{
print "$front_submithank";
}
 ?> </td>
 </tr>
 <tr>
 <td align="right">&amp;nbsp; </td>
 </tr>
 </table>

 </td>
 <td background="./images/right_bg.gif" valign="top">
 <table width="200" border="0" cellspacing="0" cellpadding="6">
 <tr>
 <td>
 <?php
 displinkinindex($table);
 ?>
 </td>
 </tr>
 </table>
 </td>
 </tr>
</table>
<?php
include("bottom.php3");
?>
</body>
</html>

&amp;nbsp;

PHP CraigsList Classified Clone URL Management

Craigslist Clone, Gumtree Clone, Loquo Clone. Craigslist Clone PHP classifieds script. Run your own distinct classifieds site which is a powerful, feature rich, easy to use classified ads solution. CraigsList Classified Clone 1 is a powerful, feature rich, easy to use, turn key classifieds solution. Developed in PHP and MySQL, This classifieds works similar to the most popular sites out there like Craigslist, BackPage, Loquo, Kijiji or GumTree.

 

 

<?php

//Database settings

$DBName = "dingyetest";
$DBUser = "root";
$DBPassword = "";
$DBHost = "localhost";
$adminemail = "";

//Front Language settings
$front_charset = "gb2312";
$front_searcresults = "²éѯ½á¹û";
$front_search = "²éѯ";
$front_bykeyword = "¹Ø¼ü´Ê";
$front_all = "ËùÓÐ____";
$front_searchsubmit = "¿ªÊ¼!";
$front_previouspage = "ÉÏÒ»Ò³";
$front_nextpage = "ÏÂÒ»Ò³";
$front_links = "Áª½Ó";
$front_subemailtitle = "ÓÐÈËÌá½»ÁËÎÄÕÂ";
$front_submission = "Ìá½»";
$front_submititle = "ÌâÄ¿";
$front_submitcontent = "ÄÚÈÝ";
$front_submitsource = "À´Ô´";
$front_submitsourceurl = "À´Ô´ÍøÖ·";
$front_submitadd = "Ôö¼Ó";
$front_submithank = "¶àлÄúµÄÌá½»";
$front_rateit = "´ò·Ö";
$front_rating = "·ÖÊý";
$front_letmerateit = "ÎÒÀ´´ò·Ö";
$front_ratebest = "×îºÃ";
$front_ratesubmit = "´ò·Ö!";
$front_adddate = "¼ÓÈëÈÕÆÚ";
$front_more = "¸ü¶à";
$front_top10 = "ÈÈÃÅǰ10Ãû";

//Admin Language settings
$admin_charset = "gb2312";
$admin_keyword = "¹Ø¼ü´Ê";
$admin_url = "ÍøÖ·";
$admin_ok = "È·¶¨";
$admin_back = "·µ»Ø";
$admin_pagename = "Ò³ÃæÃû³Æ";
$admin_linkurl = "Áª½ÓÍøÖ·";
$admin_add = "Ôö¼Ó";
$admin_addkeywordtitle = "Ôö¼Ó¹Ø¼ü´Ê";
$admin_addpagetitle = "Ôö¼ÓËÑË÷ÒýÇæÒ³Ãæ";
$admin_globalinktitle = "È«¾ÖÁª½Ó";
$admin_name = "Ãû³Æ";
$admin_del = "ɾ³ý";
$admin_previouspage = "ÉÏÒ»Ò³";
$admin_nextpage = "ÏÂÒ»Ò³";
$admin_linkname = "Áª½ÓÃû³Æ";
$admin_alltabletitle = "ËùÓбí";
$admin_links = "Áª½Ó";
$admin_delconfirm = "ÕæµØÒªÉ¾Âð£¿";
$admin_yes = "ÊÇ";
$admin_no = "·ñ";
$admin_editkeywordtitle = "±à¼­¹Ø¼ü´Ê";
$admin_editpagetitle = "±à¼­ËÑË÷ÒýÇæÒ³Ãæ";
$admin_edit = "±à¼­";
$admin_adminindex = "¹ÜÀíÊ×Ò³";
$admin_addtable = "Ôö¼Ó±í";
$admin_tablelink = "±íÁª½Ó";
$admin_singlelink = "µ¥¶ÀÁª½Ó";
$admin_optionlink = "Ñ¡ÏîÁª½Ó";
$admin_searchenginepages = "ËÑË÷ÒýÇæÒ³Ãæ";
$admin_keywordlink = "¹Ø¼ü´ÊÁª½Ó";
$admin_table = "±í";
$admin_field = "×Ö¶Î";
$admin_option = "Ñ¡Ïî";
$admin_addtablewizard = "Ìí¼Ó±íÏòµ¼";
$admin_tabledescription = "±íÃèÊö";
$admin_tablename = "±íÃû";
$admin_fieldnumber = "ÓжàÉÙ¸½¼Ó×ֶΣ¿";
$admin_parenttable = "¸¸±í";
$admin_next = "ÏÂÒ»²½";
$admin_reset = "ÖØÖÃ";
$admin_linked = "±»Áª½ÓµÄ";
$admin_showedin = "³öÏÖÔÚ";
$admin_tabledetal = "±íµÄÏêϸÇé¿ö";
$admin_fieldname = "×Ö¶ÎÃû";
$admin_description = "×Ö¶ÎÃèÊö";
$admin_type = "ÀàÐÍ";
$admin_length = "³¤¶È";
$admin_precision = "¾«¶È";
$admin_isdisplay = "ÊÇ·ñÏÔʾ£¿";
$admin_inputmethod = "ÊäÈ뷽ʽ";
$admin_displayseq = "ÏÔʾ˳Ðò";
$admin_defaultvalue = "ĬÈÏÖµ";
$admin_createtablesuccess = "±íÒѳɹ¦´´½¨";
$admin_addindex = "Ôö¼ÓË÷Òý";
$admin_selectindex = "Ñ¡ÔñË÷ÒýÃû";
$admin_adminsystem = "¹ÜÀíϵͳ";
$admin_admin = "¹ÜÀí";
$admin_searchenginepageno = "ËÑË÷ÒýÇæÒ³Ãæ±àºÅ";
$admin_changetable = "¸Ä±ä±í½á¹¹";
$admin_tableoptions = "±íÑ¡Ïî";
$admin_currentlocation = "µ±Ç°Î»ÖÃ";
$admin_welcome = "»¶Ó­À´µ½¹ÜÀíϵͳ";
$admin_content = "ÄÚÈÝ";
$admin_picturepath = "ͼƬĿ¼";
$admin_viewnumber = "ä¯ÀÀÊý";
$admin_rating = "·ÖÊý";
$admin_ratenumber = "´ò·ÖÈËÊý";
$admin_source = "À´Ô´";
$admin_sourceurl = "À´Ô´ÍøÖ·";
$admin_existing = "ÏÖÓеÄ";
$admin_opreation = "²Ù×÷";
$admin_save = "±£´æ";
$admin_picture = "ͼƬ";
$admin_error = "´íÎó";
$admin_addfield = "Ìí¼Ó×Ö¶Î";
$admin_modifyfields = "ÐÞ¸Ä×Ö¶Î";
$admin_fieldid = "×ֶαàºÅ";
$admin_editindex = "±à¼­Ë÷Òý";
$admin_indexid = "Ë÷Òý±àºÅ";
$admin_addsearchoption = "Ôö¼ÓËÑË÷Ñ¡Ïî";
$admin_addoption = "Ôö¼ÓÑ¡Ïî";
$admin_linkalreadyexist = "Áª½ÓÒÑ´æÔÚ";
$admin_keywordalreadyexist = "¹Ø¼ü´ÊÒÑ´æÔÚ";
$admin_searchalreadyexist = "ËÑË÷Ñ¡ÏîÒÑ´æÔÚ";
$admin_popupmenu = "ÏÂÀ­²Ëµ¥";
$admin_singletext = "Îı¾¿ò";
$admin_multitext = "Îı¾Çø";
$admin_install = "°²×°";
$admin_databasename = "Êý¾Ý¿âÃû";
$admin_databaseuser = "Êý¾Ý¿âÓû§";
$admin_databasepass = "Êý¾Ý¿âÃÜÂë";
$admin_databasehost = "Êý¾Ý¿âÖ÷»ú";
$admin_adminemail = "¹ÜÀíÔ±Óʼþ";
$admin_search = "ËÑË÷";
$admin_databasesetting = "Êý¾Ý¿âÉèÖÃ";
$admin_setadminpassword = "ÇëÑ¡Ôñºǫ́¹ÜÀíÓû§ÃûºÍÃÜÂë";
$admin_username = "Óû§Ãû";
$admin_password = "ÃÜÂë";
$admin_loginfail = "´íÎóµÄÓû§ÃûÃÜÂë";
$admin_login = "怬";
$admin_makeasalink = "±ä³ÉÁª½Ó";
$admin_linkadded = "Áª½ÓÒѼÓÈë";
$admin_adduser = "Ôö¼Ó¹ÜÀíÔ±";
$admin_edituser = "±à¼­¹ÜÀíÔ±";
$admin_usermanagement = "ȨÏÞ¹ÜÀí";
$admin_modipassword = "¸ü¸ÄÃÜÂë";
$admin_oldpassword = "¾ÉÃÜÂë";
$admin_retypepassword = "ÖØÐÂÊäÈë";
$admin_newpassword = "ÐÂÃÜÂë";
$admin_retypenotmatch = "Á½´ÎÊäÈëµÄÃÜÂë²»·û£¬ÇëÖØÊÔ";
$admin_oldpasswrong = "¾ÉÃÜÂë´íÎó£¬ÇëÖØÊÔ";
$admin_addcontent = "Ôö¼ÓÄÚÈÝ";
$admin_constisnotwriteable = "const.inc.php²»¿Éд£¬ÇëÐÞ¸ÄȨÏÞ";

$help_firstthing = "ÄúÒª×öµÄµÚÒ»¼þÊÂÓ¦¸ÃÊÇ'Ôö¼Ó±í' À¸Ä¿ÀïµÄÄÚÈݶ¼´æ·ÅÔÚÊý¾Ý±íÖÐ Èç¹ûÄúÒªÌí¼ÓеÄÀ¸Ä¿ Ò²ÐèҪн¨Êý¾Ý±í ±¾ÏµÍ³ÔÊÐíÄú×ÔÓɶ¨ÖÆÊý¾Ý±íÖÐ×Ö¶Î";
$help_gloaballink = "È«¾ÖÁª½Ó»á³öÏÖÔÚÍøÕ¾ËùÓеÄÒ³ÃæÖÐ ÎÞÂÛÕâ¸öÒ³ÃæÊôÓÚÈκαí(À¸Ä¿)";
$help_tablelink = "±íÁª½ÓÖ»»á³öÏÖÔÚÖ¸¶¨µÄ±í(À¸Ä¿)ÖÐ";
$help_singlelink = "µ¥¶ÀÁª½ÓÖ»»á³öÏÖÔÚij¸öÖ¸¶¨µÄÒ³ÃæÖÐ";
$help_optionlink = "Ñ¡ÏîÁª½Óµ±Ö¸¶¨±í(À¸Ä¿)µÄÖ¸¶¨×Ö¶ÎÎªÌØ¶¨ÖµÊ±³öÏÖ";
$help_keyword = "Äú¿ÉÒÔ¶¨Ò幨¼ü´Ê ²¢ÇÒ¸ø¹Ø¼ü´Ê±¾Éí¶¨ÒåÁª½Ó ÍøÕ¾ÀïµÄÄÚÈÝÈç¹û³öÏֹؼü´Ê¾Í»áÌæ»»Îª³¬Îı¾Áª½Ó";
$help_tabledescription = "ͬʱ»á×öΪ±í(À¸Ä¿)µÄÃû³ÆÏÔʾÔÚǰ̨ºÍ¹ÜÀí³ÌÐòÖÐ Èç'Öйú»­' ±ØÌî";
$help_tabledname = "ÔÚÊý¾Ý¿âÖеıíÃû Çë×ñÑ­mysqlµÄÃüÃû¹æ·¶ Èç'painting' ±ØÌî";
$help_extrafields = "Ô­ÓÐ×Ö¶ÎÖ®ÍâÓжàÉÙ×Ö¶Î ½¨Á¢±íµÄʱºòͬʱ»á½¨Á¢Ò»Ð©×Ö¶Î ÓÐ Ãû³Æ ÄÚÈÝ Í¼Æ¬ ͼƬËùÔÚĿ¼ ä¯ÀÀÊý ¼ÓÈëÈÕÆÚ ÆÀ·Ö·ÖÊý ÆÀ·ÖÈËÊý ÎÄÕÂÀ´Ô´ À´Ô´ÍøÖ· ÊÇ·ñÏÔʾ";
$help_parenttable = "ÔÚ½¨Á¢±íµÄʱºòÄú¿ÉÒÔÈÃ±í·¢Éú¹ØÁª Èç'»­¼Ò'ºÍ'×÷Æ·' '»­¼Ò'¾ÍÊÇ'×÷Æ·'µÄ¸¸±í ²¢ÇÒǰ̨ÏÔʾij¸ö»­¼ÒµÄ½éÉÜʱ»áͬʱÏÔʾ¸Ã»­¼ÒµÄ×÷Æ·";
$help_fieldname = "ÔÚÊý¾Ý¿âÖеÄ×Ö¶ÎÃû Çë×ñÑ­mysqlµÄÃüÃû¹æ·¶ Èç'test' ±ØÌî";
$help_fielddescription = "»áÏÔʾÔÚǰ̨ºÍ¹ÜÀí³ÌÐòÖÐ Èç'²âÊÔÏî' ±ØÌî";
$help_fieldtype = "Èç¹û²»Ã÷°×¾ÍÑ¡varchar Ñ¡varcharµÄʱºòÒª¶¨Ò峤¶È";
$help_fieldisdisplay = "¸Ã×ֶεÄÄÚÈÝÊÇ·ñÔÚǰ̨ÏÔʾ";
$help_inputmethod = "ÔÚ¹ÜÀí³ÌÐòÀïÊäÈëʱµÄÊäÈ뷽ʽ Îı¾Çø¾ÍÊǶàÐÐÎı¾¿ò Èç¹ûÊäÈ뷽ʽÊÇÏÂÀ­²Ëµ¥¾ÍÐèÒªÔÚ'±íÑ¡Ïî'ÖÐΪÆäÌí¼ÓÑ¡Ïî";
$help_displayseq = "ÔÚǰ̨ÏÔʾʱ ³öÏÖµÄÏȺó˳Ðò ÊýֵԽСԽ¿¿Ç°";
$help_itemid = "ÔÚ±¾ÏµÍ³ÖÐÓû§Ìî¼ÓµÄËùÓÐÄÚÈÝ ÎÞÂÛÊôÓÚÄĸö±í(À¸Ä¿) ¶¼»áÓÐÒ»¸öΨһµÄ±àºÅ¼´itemid Èç¹ûitemidΪ0 ´ú±íÊǸöÍⲿÁª½Ó";
$help_oplinkfield = "ÔÚÊý¾Ý¿âÖеÄ×Ö¶ÎÃû";
$help_oplinkoption = "Ö¸¶¨×Ö¶ÎΪºÎֵʱÏÔʾÁª½Ó";
$help_keywordlink = "¿ÉÒÔ¸ø¹Ø¼ü´ÊÌî¼Ó¶à¸öÁª½Ó Èç¹ûÍøÕ¾ÖеÄÄ³Ò»Ò³Ãæ±»¼ÓΪ¹Ø¼ü´ÊÁª½Ó ÔÚÏÔʾ¸ÃÒ³ÃæµÄʱºò»á°ÑËùÓиúÕâ¸ö¹Ø¼ü´ÊÓÐ¹ØµÄÆäËûÁª½Óµ÷³öÀ´";
$help_subadminindex = "Èç¹ûÄú´´½¨µÄ±íµÄ×Ö¶ÎÖÐ ÓÐÊäÈ뷽ʽΪ'ÏÂÀ­²Ëµ¥'µÄ ÇëÏÈÔÚ'±íÑ¡Ïî'ÖÐΪ¸Ã×Ö¶ÎÌí¼ÓÑ¡Ïî";
$help_subcontentadmin = "ÔÚÕâÀï¿ÉÒÔÌí¼ÓеÄÄÚÈÝ ½øÐÐÐÞ¸Äɾ³ý ÉÏ´«Í¼Æ¬ °ÑÏÖÓÐÄÚÈÝÉèÖÃΪÁª½Ó";
$help_changetable = "ÔÚÕâÀï¿ÉÒÔΪÊý¾Ý±íÌí¼ÓеÄ×Ö¶Î Ò²¿ÉÒÔÐÞ¸Äɾ³ýÒÑÓеÄ×Ö¶Î";
$help_tableoption = "ÔÚÕâÀï¿ÉÒÔΪǰ̨Ôö¼ÓËÑË÷Ïî ΪÊäÈ뷽ʽΪ'ÏÂÀ­²Ëµ¥'µÄ×Ö¶ÎÌí¼ÓÑ¡Ïî Ôö¼Ó·ÖÀàË÷Òý";
$help_contentedit = "ÔÚÕâÀïÒ²¿ÉÒ԰ѸÃÏîÄÚÈÝÉèÖÃΪÁª½Ó";
$help_source = "Èç¹ûÄúµÄÄÚÈÝÊÇÕª×ÔÆäËûµØ·½µÄ»°";
$help_isdisplay = "¸ÃÄÚÈÝÔÚǰ̨ÊÇ·ñÏÔʾ Èç¹ûÄÚÈÝÔÝʱ²»¿ÉÓõϰ¿ÉÒÔÑ¡'·ñ' ÀýÈç··ÂôµÄÉÌÆ·Ä¿Ç°È±»õ";
$help_searchoption = "¶¨ÖÆÇ°Ì¨µÄ²éѯÏî Ôö¼ÓÁ˲éѯ×Ö¶ÎÖ®ºó ǰ̨µÄËÑË÷Ïî¾Í»á×Ô¶¯Ôö¼Ó ÎÞÐèÈκαà³Ì";
$help_inputoption = "ΪÊäÈ뷽ʽΪ'ÏÂÀ­²Ëµ¥'µÄ×Ö¶ÎÌí¼ÓÑ¡Ïî";
$help_tblindex = "Ϊij¸ö×Ö¶ÎÔö¼Ó·ÖÀàË÷ÒýÖ®ºó ǰ̨¸ÃÀ¸Ä¿µÄÊ×Ò³Öоͻá×Ô¶¯°´ÕÕ¸Ã×ֶνøÐзÖÀàË÷Òý Äú»¹¿ÉÒÔΪÆä¼ÓÈëÃèÊöÎÄ×Ö";
?>

&amp;nbsp;

Price Comparisons Script for URL Management

Affiliate Price Comparisons is a PHP and MySQL price comparison script based on Magic Parser: an easy to use PHP library ideal for working with affiliate product feeds, automatically recognizing and parsing almost any data feed file format. Your purchase entitles you to unlimited use (create as many sites as you like), full source code including Magic Parser, and unlimited friendly help and technical support!

 

 

<?php
require("./FrontSql.inc.php");
$db = new FrontSQL($DBName);
if ((!empty($PR)) &amp;&amp; ($Rating>=1)){
 $db->set_Rating($id,$Rating,$table);
}
$result = $db->get_detaildata($id,$table);
$pageid = $result[0]["pageid"];
$spage = $db->getpagebyID($pageid);
$name = $result[0]["name"];
$content = $result[0]["content"];
$picture = $result[0]["picture"];
$picturepath = $result[0]["picturepath"];
$viewnum = $result[0]["viewnum"];
$sourceurl = $result[0]["sourceurl"];
$source = $result[0]["source"];
$adddate = $result[0]["adddate"];
$db->addhit($viewnum,$id,$table);
$Rate = $result[0]["rating"];
$Rate1 = $Rate*10;
$Rate2 = ceil($Rate1);
$Rate = $Rate2/10;

$stitle = $spage[0]["title"];
$skeywords = $spage[0]["keywords"];
$sdescription = $spage[0]["description"];
$salt = $spage[0]["alt"];
$sheading = $spage[0]["heading"];
$slinktext = $spage[0]["linktext"];
$slinkurl = $spage[0]["linkurl"];

$DetailFieldName = $db->get_detailfield($table);

$pre[0] = $id-1;

for ($i=1; $i<=$prenumber-1; $i++){
$pre[$i] = $pre[$i-1]-1;
}

$next[0] = $id+1;

for ($i=1; $i<=$nextnumber-1; $i++){
$next[$i] = $next[$i-1]+1;
}

?>
<html>
<head>
<title><?
 if (!empty($stitle)){
 print "$stitle";
 }
 else{
 print "$name";
 }
 ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print "$front_charset"; ?>">
<?
if (!empty($skeywords)){
print "<meta name=\"keywords\" content=\"$skeywords\">\n";
}
if (!empty($sdescription)){
print "<meta name=\"description\" content=\"$sdescription\">\n";
}
?>
<link rel="stylesheet" href="./style/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&amp;&amp;(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<?php
include("top.php3");
?>
<table width="770" border="0" cellspacing="1" cellpadding="0" align="center">
 <tr>
 <td width="160" valign="top">
 <table width="160" border="0" cellspacing="0" cellpadding="3">
 <tr>
 <td colspan="3" bgcolor="#F2F2F2">::<?php print "$front_rateit"; ?>:</td>
 </tr>
 <tr>
 <td width="36">
 <div align="right"><?php print "$front_rating"; ?>:</div>
 </td>
 <td width="73">
 <?php
 $width = $Rate*10;
 if (!empty($salt)){
 print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\" alt=\"$salt\">";
 }
 else{
 print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\">";
 }
 ?>
 </td>
 <td width="33">
 <?php print "$Rate"; ?>
 </td>
 </tr>
 </table>

 <hr noshade size="1" color=#999999>
 <form action="<?php print "$PHP_SELF"; ?>" method="post">
 <input type="hidden" name="id" value="<?php print "$id"; ?>">
 <input type="hidden" name="table" value="<?php print "$table"; ?>">
 <table width="160" border="0" cellspacing="0" cellpadding="3">
 <tr>
 <td bgcolor="#F2F2F2" colspan="2">::<?php print "$front_letmerateit"; ?>:</td>
 </tr>
 <tr>
 <td width="9">&amp;nbsp; </td>
 <td width="139">
 <select name="Rating">
 <option selected value=5>5(<?php print "$front_ratebest"; ?>)</option>
 <option value=4>4</option>
 <option value=3>3</option>
 <option value=2>2</option>
 <option value=1>1</option>
 </select>
 </td>
 </tr>
 <tr>
 <td colspan="2">
 <div align="center">
 <input type="submit" name="PR" value="<?php print "$front_ratesubmit"; ?>">
 </div>
 </td>
 </tr>
 </table>
 </form>

 <hr noshade size="1" color=#999999>
 <table width="160" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td><img src="./images/left_search.gif" width="152" height="16"></td>
 </tr>
 <tr>
 <td>
 <form action="<? print "$searchurl"; ?>" method="POST">
 <input type="hidden" name="table" value="<?php print "$table"; ?>">
 <table border="0" cellspacing="0" cellpadding="0" width="145" align="right">
 <? dispsearchoption($table); ?>
 <tr><td><input type="submit" name="searchsubmit" value="<?php print "$front_searchsubmit"; ?>"></td></tr>
 <tr><td>&amp;nbsp;</td></tr>
 </table>
 </form>
 </td>
 </tr>
 </table>
 </td>

 <td bgcolor="#FFFFFF" valign="top" width="410">
 <table width="410" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td bgcolor="#F2F2F2">::<? print "$name"; ?></td>
 </tr>
 <?
 if (!empty($picture)){
 if (!empty($salt)){
 print "<tr>
 <td align=\"center\"><img src=\"$picturepath$picture\" alt=\"$salt\"></td>
 </tr>"
;
 }
 else{
 print "<tr>
 <td align=\"center\"><img src=\"$picturepath$picture\" alt=\"$name\"></td>
 </tr>"
;
 }
 }

 if (!empty($content)){
 $content = dealcontent($content);
 print "<tr>
 <td>$content</td>
 </tr>"
;
 }

 if (!empty($DetailFieldName)) {
 while ( list($key,$val)=each($DetailFieldName) ) {
 $CName = stripslashes($val["FCName"]);
 $FEName = stripslashes($val["FEName"]);
 $isoption = stripslashes($val["isoption"]);
 $CData = $result[0]["$FEName"];
 if (!empty($CData)){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$CName:</td>
 </tr>"
;
 if ($isoption=="1"){
 print "<tr>
 <td><a href=\"$searchurl?type=1&amp;search=$FEName&amp;name=$CData&amp;table=$table\" target=\"_blank\" class=\"en_b\">$CData</a></td>
 </tr>"
;
 }else{
 print "<tr>
 <td>$CData</td>
 </tr>"
;
 }
 }
 }
 }

 if (!empty($sourceurl)){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">Source of this article:</td>
 </tr>
 <tr>
 <td><a href=\"$sourceurl\" class=\"en_b\" target=\"_blank\">$source</a></td>
 </tr>"
;
 }
 else {
 if (!empty($source)){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">Source of this article:</td>
 </tr>
 <tr>
 <td>$source</td>
 </tr>"
;
 }
 }

 if (!empty($adddate)){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$front_adddate :</td>
 </tr>
 <tr>
 <td>$adddate</td>
 </tr>"
;
 }

 dispchilditem($table,$id);

 if (!empty($submiturl)){
 print "<tr bgcolor=\"#F2F2F2\" class=\"menu_in\">
 <td>
 <a href=\"$submiturl?table=$table\" class=\"en_b\">$submitname</a>
 </td>
 </tr>"
;
 }

 for ($i=0; $i<=$prenumber-1; $i++){
 $prename[$i] = $db->getname($pre[$i],$table);
 if (!empty($prename[$i])){
 $prenotemptytag = true;
 }
 }
 for ($i=0; $i<=$nextnumber-1; $i++){
 $nextname[$i] = $db->getname($next[$i],$table);
 if (!empty($nextname[$i])){
 $nextnotemptytag = true;
 }
 }
 if (($prenotemptytag)||($nextnotemptytag)){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">More ...</td>
 </tr>
 <tr>
 <td>"
;
 for ($i=0; $i<=$prenumber-1; $i++){
 if (!empty($prename[$i])){
 print "<a href=\"item.php?id=$pre[$i]&amp;table=$table\" class=\"en_b\">$prename[$i]</a><br>";
 }
 }

 for ($i=0; $i<=$nextnumber-1; $i++){
 if (!empty($nextname[$i])){
 print "<a href=\"item.php?id=$next[$i]&amp;table=$table\" class=\"en_b\">$nextname[$i]</a><br>";
 }
 }
 print "</td>
 </tr>"
;
 }

 if ((!empty($sheading))&amp;&amp;(!empty($slinktext))&amp;&amp;(!empty($slinkurl))){
 print "<tr>
 <td bgcolor=\"#F2F2F2\" class=\"menu_in\"><h5>$sheading</td>
 </tr>
 <tr>
 <td><a href=\"$slinkurl\" class=\"en_b\" target=\"_blank\">$slinktext</a></td>
 </tr>"
;
 }
 ?>
 </table>
 </td>
 <td background="./images/right_bg.gif" valign="top">
 <table width="200" border="0" cellspacing="0" cellpadding="6">
 <tr>
 <td>
 <?php
 displink($table,$id);
 ?>
 </td>
 </tr>
 </table>
 </td>
 </tr>
</table>
<?php
include("bottom.php3");
?>
</body>
</html>

&amp;nbsp;

 

PHP Scripts Content URL Management system

Flexphpsite is not only a content management system but also scripts that can be used in most websites.Content Management System is our profession. This content management system is written in PHP and uses mysql as its database.The system pays particular attention to its powerful link functions. Five kinds of link methods are included globle link, table link, single link, keyword link and option link.You can use these link functions to manage your content.

 

 

<?php
require("./FrontSql.inc.php");
$db = new FrontSQL($DBName);
$description = $db->getindexdescription($table,$fieldname,$indexname);
$items = $db->getsearchitems($table,$fieldname,$indexname);
?>
<html>
<head>
<title><?php print "$indexname"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print "$front_charset"; ?>">
<link rel="stylesheet" href="./style/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&amp;&amp;(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<?php
include("top.php3");
?>
<table width="770" border="0" cellspacing="1" cellpadding="0" align="center">
 <tr>
 <td width="160" valign="top">
 <table width="160" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td><img src="./images/left_search.gif" width="152" height="16"></td>
 </tr>
 <tr>
 <td>
 <form action="<? print "$searchurl"; ?>" method="POST">
 <input type="hidden" name="table" value="<?php print "$table"; ?>">
 <table border="0" cellspacing="0" cellpadding="0" width="145" align="right">
 <? dispsearchoption($table); ?>
 <tr><td><input type="submit" name="searchsubmit" value="<?php print "$front_searchsubmit"; ?>"></td></tr>
 <tr><td>&amp;nbsp;</td></tr>
 </table>
 </form>
 </td>
 </tr>
 </table>
 </td>
 <td bgcolor="#FFFFFF" valign="top" width="410">
 <table width="410" border="0" cellspacing="0" cellpadding="4">
 <tr>
 <td bgcolor="#F2F2F2"><? print "$indexname"; ?></td>
 </tr>
 <?php
 if (!empty($description)){
 $description = dealcontent($description);
 print "<tr>
 <td>$description</td>
 </tr>"
;
 }
 print "<tr>
 <td>"
;
 if (!empty($items)) {
 while ( list($key,$val)=each($items) ) {
 $itemid = stripslashes($val["itemid"]);
 $name = stripslashes($val["name"]);
 print "<a href=\"item.php?id=$itemid&amp;table=$table\" class=\"en_b\"><img src=\"./images/bullet_b.gif\" width=\"11\" height=\"9\" border=\"0\">$name</a><br>";
 }
 }
 print "</td>
 </tr>"
;

 if (!empty($submiturl)){
 print "<tr  bgcolor=\"#F2F2F2\" class=\"menu_in\">
 <td>
 <a href=\"$submiturl?table=$table\" class=\"en_b\">$submitname</a>
 </td>
 </tr>"
;
 }
 ?>
 </table>
 </td>
 <td background="./images/right_bg.gif" valign="top">
 <table width="200" border="0" cellspacing="0" cellpadding="6">
 <tr>
 <td>
 <?
 displinkincatalog($table,$fieldname,$indexname);
 ?>
 </td>
 </tr>
 </table>
 </td>
 </tr>
</table>
<?php
include("bottom.php3");
?>
</body>
</html>

&amp;nbsp;

Scripts Management System Code In Jsp

0-Code HTML Converter is a handy tool for web developers, that allows you to easily convert regular HTML code into ASP, PHP, Perl, JSP or JavaScript. Just enter the HTML code or load a HTML file and select the output format – the converted code can be saved to file. Free download of 0- Code HTML Converter 3.0, size 1.43 Mb.

<?php

 /*

    (c) 2006 Reed Morse <firstname.lastname at gmail.com>
         and Pau Santesmasses  <firstname at lastname.net>

*/


if (!isset ($_SESSION)) session_start();
$_SESSION['action'] = 'admin';

require("functions.php");
require("configuration.php");

connect();
authenticate();

$user_id = getUserID();

$selected12 = '';
$selected48 = '';
$selectedAll = '';
$longURL = '';
$visibility = '';
$limit = '';

$query_user = "SELECT * FROM `".$user_table."` WHERE `id`='".$user_id."'";
$result_user = mysql_query($query_user);
$user = mysql_fetch_array($result_user);
if($user['perpage'] == "12"){
    $selected12 = 'checked ';
    $limit = " LIMIT ".$user['perpage'];
}
if($user['perpage'] == "48"){
    $selected48 = 'checked ';
    $limit = " LIMIT ".$user['perpage'];
}
if(strtolower($user['perpage']) == "all"){
    $selectedAll = 'checked ';
    $limit = "";
}
if($user['longURL'] == 1){
    $longURL = 'checked ';
    $visibility = 'visible';
}

if(isset($_GET['start'])){
    $start = $_GET['start'];
} else { $start = 0; }
$next = $start + $user['perpage'];
$previous = $start - $user['perpage'];
if($previous < 0){ $previous = 0; }
if(isset($_GET['start'])){
    $limit = " LIMIT ".$start.", ".$user['perpage'];
}
if(isset($_GET['force'])){
    if($_GET['force'] !== 'all'){
        $limit = " LIMIT ".$_GET['force'];
        if($_GET['force'] == '12'){
            $selected12 = 'checked ';
            $selected48 = '';
            $selectedAll = '';
        }
        if($_GET['force'] == '48'){
            $selected48 = 'checked ';
            $selected12 = '';
            $selectedAll = '';
        }
    } else {
        $limit = '';
        $selectedAll = 'checked ';
        $selected12 = '';
        $selected48 = '';
    }
}
$query_count = "SELECT COUNT(*) AS total FROM `".$main_table."`";
$result_count = @mysql_query($query_count);
$count = @mysql_fetch_object($result_count);
$total = $count -> total;

$query_shorties = "SELECT * FROM `".$main_table."` ORDER BY `id` ASC".$limit;
$result_shorties = @mysql_query($query_shorties);
$num_shorties = @mysql_num_rows($result_shorties);

// Figure out where on the server the urls are
$where = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
$where = substr_replace($where, "", -10); // Remove /admin.php

if(isset($_GET['start'])){
    $i = $start;
    $i++;
    $offset = $i;
} else {
    $i = 1;
    $offset = $i;
}
echo '
   <div id="search">
      <form id="searchForm" onsubmit="return false">
      <img id="search-spinner" src="skin/'
.$user['theme'].'/spinner.gif" />
      <input type="text" value="" id="searchTerm" />
      <input type="image" class="searchButton" name="search" value="SEARCH" id="searchBtn" src="skin/originhal/search.gif" onclick="administrator.srch();" />
      <input type="image" class="clearButton" name="clear" value="CLEAR" id="clearBtn" src="skin/originhal/clear.gif" onclick="administrator.clr();" />
      </form>
   </div>
  '
;
 
echo '
  <img id="main-spinner" src="skin/'
.$user['theme'].'/spinner.gif" />
  <table id="shortyList" class="sortable">
    <tr>
    <th class="selected">&amp;nbsp;</th>
    <th class="shortyURL">Shorty</th>
    <th class="date">Modified</th>
    <th class="nosort buttons">Actions
    </th>
    </tr>
'
;
if($result_shorties){
    while($array = mysql_fetch_array($result_shorties)){
   
        $n = $i % 2;
        if($n == 0){
            $tr_class = "evenrow";
        } else {
            $tr_class = "oddrow";
        }
       
        if(!$array['key1']){ $array['key1'] = ''; } else { $array['key1'] = '/'.$array['key1']; }
        if(!$array['key2']){ $array['key2'] = ''; } else { $array['key2'] = '/'.$array['key2']; }
        if(!$array['key3']){ $array['key3'] = ''; } else { $array['key3'] = '/'.$array['key3']; }
        if(!$array['key4']){ $array['key4'] = ''; } else { $array['key4'] = '/'.$array['key4']; }
        $display_shorty = '<span class="hostname '.$visibility.'">'.$where.'</span>'.$array['key1'].$array['key2'].$array['key3'].$array['key4'];
        $real_shorty = $where.$array['key1'].$array['key2'].$array['key3'].$array['key4'];
       
        if(strlen($i) == '1'){ // Add leading zero
            $i = '0'.$i;
        }
        if(strlen($array['day']) == '1'){ // Add leading zero
            $array['day'] = '0'.$array['day'];
        }
        /*if(strlen($array['month']) == '1'){ // Add leading zero
            $array['month'] = '0'.$array['month'];
        }*/

        if(strlen($array['year']) == '1'){ // Add leading zero
            $array['year'] = '0'.$array['year'];
        }
       
        echo '
         <tr class="'
.$tr_class.'">
         <td class="rowNum">'
.$i.'. </td>
         <td class="shortyURL">'
.$display_shorty.'/ ('.$array['clicks'].' clicks) <a href="'.$real_shorty.'/" title="Follow Shorty (New Window)" target="_blank"><img src="skin/'.$user['theme'].'/follow.gif" border="0" alt="Follow Shorty (New Window)"/></a></td>
         <td class="date">'
.$array['month'].'.'.$array['day'].'.'.$array['year'].'</td>
         <td class"buttons">
         <input type="button" class="edit" name="'
.$array['id'].'" value="EDIT" id="edBtn'.$i.'" /><input type="button" class="save" name="'.$array['id'].'" value="SAVE" id="saveBtn'.$i.'" /><input type="button" class="delete" name="'.$array['id'].'"  value="DELETE" id="delBtn'.$i.'"  /><input type="button" class="cancel" name="'.$array['id'].'"  value="CANCEL" id="cancelBtn'.$i.'"  /></td></tr>
        '
;
        $i++;
    }
    $new_i = $i-1;
} else {
  echo '
  <tr class="'
.$tr_class.'">
    <td colspan=4>
        No results
    </td>
  </tr>'
;
}

echo '
</table>                                                                                                                                                                                                                                                
<div id="adminOptions">
   <ul id="pagingNav">
      <li><a href="admin.php?start='
.$previous.'" onclick="forward(admin.php?start='.$previous.')">Previous</a></li>
      <li><a href="admin.php?start='
.$next.'" onclick="forward(admin.php?start='.$next.')">Next</a></li>
   </ul>
   <div id="totalResultsYay">
     <p>Displaying '
.$offset.'-'.$new_i.' of '.$total.' Shorties</p>
   </div>
   <form id="displayOptions" action="admin.php" method="get">
      <label id="urlLength"><input type="checkbox" name="longURL" value="longURL" '
.$longURL.'/>Show long URLs</label>
      <label><input type="radio" name="shortysPerPage" value="12" '
.$selected12.'/>12 Shortys at a time</label>
      <label><input type="radio" name="shortysPerPage" value="48" '
.$selected48.'/>48 Shortys at a time</label>
      <label><input type="radio" name="shortysPerPage" value="all" '
.$selectedAll.'/>All Shortys at a time</label>
   </form>
</div>

<script type="text/javascript" charset="utf-8">
    // <![CDATA[
    menu.unfold("adminOption");
    new nav("adminOptions");
    buttonCollector.init("shortyList");
    buttonCollector.init("displayOptions");
    buttonCollector.init("searchForm");
    administrator.init();
    sortables_init();
    // ]]>
</script>
'
;

?>

PHP Scripts URL School Management System

New reliable and fast school managenet software with the geat customers support. It’ll help you with your daily school management routines and deliver you from your paperwork. Standard Edition is free. Do not miss this unique opportunity. Save your time and get full control of your business with School Management System.The main principles:Security – the security subsystem supports dividing users into several groups. Each group has its own set of rights for viewing or changing data. The highest reliability – data management system is based on transactions.

 

 

<?php

 /*

 (c) 2006 Reed Morse <firstname.lastname at gmail.com>
 and Pau Santesmasses  <firstname at lastname.net>

*/


require("functions.php");
require("configuration.php");

connect();
authenticate();

$user_id = getUserID();

if(isset($_POST['pref'])){ $pref = $_POST['pref']; }
if(isset($_POST['value'])){ $value = $_POST['value']; }

if(isset($pref) &amp;&amp; isset($value)){
 $query = "UPDATE `".$user_table."` SET `".$pref."`='".$value."' WHERE `id`='".$user_id."'";
 mysql_query($query);
//    echo $query;

 $query_confirm = "SELECT * FROM `".$user_table."` WHERE `".$pref."`='".$value."' AND `id`='".$usenam."'";
 mysql_query($query_confirm);
 $num_rows = @mysql_num_rows($mysql_query);
 if($num_rows !== "" &amp;&amp; $num_rows !== "0"){
 echo 'success';
 } else {
 echo 'failure';
 }
}

if(isset($_POST['old'])){ $old = $_POST['old']; }
if(isset($_POST['new1'])){ $new1 = $_POST['new1']; }
if(isset($_POST['new2'])){ $new2 = $_POST['new2']; }

if(isset($old) &amp;&amp; isset($new1) &amp;&amp; isset($new2)){
 // Could count rows here, but in the future we might have multiple users and two could have the same password...
 $pass_query = "SELECT * FROM `".$user_table."`";
 $pass_result = mysql_query($pass_query);
 $array = mysql_fetch_array($pass_result);
 $db_password = $array['password'];

 if(md5($old) == $db_password){ // Confirm old P
 if($new1 == $new2){ // Confirm equivalent new Ps
 $pass_md5 = md5($new1);
 $query_update = "UPDATE `".$user_table."` SET `password`='".$pass_md5."' WHERE `id`='".$user_id."'";
 mysql_query($query_update);

 $query_confirm = "SELECT * FROM `".$user_table."` WHERE `password`='".$pass_md5."' AND `id`='".$usenam."'";
 mysql_query($query_confirm);
 $num_rows = @mysql_num_rows($mysql_query);
 if($num_rows !== "" &amp;&amp; $num_rows !== "0"){
 echo 'success';
 } else {
 echo 'failure';
 }

 } else { // If new Ps not same
 echo 'New passwords don\'t match.';
 }
 } else { // If old P not same
 echo 'Old password not correct.';
 }
}
?>

&amp;nbsp;

 

PHP Scripts for URLShort Management

PHP URLShort script to run your own URL shortening service online like TinyURL.com. Quicker and easier URL redirection. Totally viral-No registration required. Multiple URLs shortening. Absolutely NO MYSQL configuration required. System Requirements: UNIX/Linux Operating System, PHP Version 4.2.x or PHP V 5.x, Ability To Use and Edit .htaccess Files With Mod-Rewrite Redirect Enabled.TinyURL clone PHP script. PHP URLShort script to run your own URL shortening service online like TinyURL.com. Quicker and easier URL redirection. Totally viral-No registration required. Multiple URLs shortening. Absolutely NO MYSQL configuration required.

 

 

<?php

 /*

 (c) 2006 Reed Morse <firstname.lastname at gmail.com>
 and Pau Santesmasses  <firstname at lastname.net>

*/


require("functions.php");
require("configuration.php");

connect();
authenticate();

$string = $_POST['query'];

$user_id = getUserID();

$longURL = '';

$query_user = "SELECT * FROM `".$user_table."` WHERE `id`='".$user_id."'";
$result_user = mysql_query($query_user);
$user = mysql_fetch_array($result_user);

if($user['longURL'] == 1){
 $visibility = 'visible';
} else {
 $visibility = '';
}

$query_shorties = "SELECT * FROM `".$main_table."`
 WHERE `target` LIKE '%"
.$string."%'
 OR `key1` LIKE '%"
.$string."%'
 OR `key2` LIKE '%"
.$string."%'
 OR `key3` LIKE '%"
.$string."%'
 OR `key4` LIKE '%"
.$string."%'
 OR `key5` LIKE '%"
.$string."%'
 ORDER BY `id` ASC
"
;

$result_shorties = @mysql_query($query_shorties);
$num_shorties = @mysql_num_rows($result_shorties);

// Figure out where on the server the urls are
$where = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
$where = substr_replace($where, "", -11); // Remove /search.php
//$where = "";

$i = 1;

echo '
 <tr>
 <th>&amp;nbsp;</th>
 <th>Shorty</th>
 <th>Modified</th>
 <th>Actions</th>
 </tr>
'
;

if($num_shorties > 0){
 while($array = mysql_fetch_array($result_shorties)){

 $n = $i % 2;
 if($n == 0){
 $tr_class = "evenrow";
 } else {
 $tr_class = "oddrow";
 }

 if(!$array['key1']){ $array['key1'] = ''; } else { $array['key1'] = '/'.$array['key1']; }
 if(!$array['key2']){ $array['key2'] = ''; } else { $array['key2'] = '/'.$array['key2']; }
 if(!$array['key3']){ $array['key3'] = ''; } else { $array['key3'] = '/'.$array['key3']; }
 if(!$array['key4']){ $array['key4'] = ''; } else { $array['key4'] = '/'.$array['key4']; }
 $display_shorty = '<span>'.$where.'</span>'.$array['key1'].$array['key2'].$array['key3'].$array['key4'];
 $real_shorty = $where.$array['key1'].$array['key2'].$array['key3'].$array['key4'];

 if(strlen($i) == '1'){ // Add leading zero
 $i = '0'.$i;
 }
 if(strlen($array['day']) == '1'){ // Add leading zero
 $array['day'] = '0'.$array['day'];
 }
 /*if(strlen($array['month']) == '1'){ // Add leading zero
 $array['month'] = '0'.$array['month'];
 }*/

 if(strlen($array['year']) == '1'){ // Add leading zero
 $array['year'] = '0'.$array['year'];
 }

 echo '
 <tr>
 <td>'
.$i.'. </td>
 <td>'
.$display_shorty.'/ ('.$array['clicks'].' clicks) <a href="'.$real_shorty.'/" title="Follow Shorty (New Window)" target="_blank"><img src="skin/'.$user['theme'].'/follow.gif" border="0" alt="Follow Shorty (New Window)"/></a></td>
 <td>'
.$array['month'].'.'.$array['day'].'.'.$array['year'].'</td>
 <td>
 <input type="button" name="'
.$array['id'].'" value="EDIT" id="SEdBtn'.$i.'" /><input type="button" name="'.$array['id'].'" value="SAVE" id="SSaveBtn'.$i.'" /><input type="button" name="'.$array['id'].'"  value="DELETE" id="SDelBtn'.$i.'"  /><input type="button" name="'.$array['id'].'"  value="CANCEL" id="SCancelBtn'.$i.'"  /></td></tr>
 '
;
 $i++;
 }
}
else{
 echo '<tr><td colspan="4">No results</td></tr>';
}

echo '</table>
<script type="text/javascript" charset="utf-8">
// <![CDATA[
buttonCollector.init(\'shortyList\');
sortables_init();
// ]]>
</script>
'
;

?>

&amp;nbsp;

 

 

PHP OpenSource URL shortening Management

Shorty is a simple tool for creating shorter, human- readable links from long URLs. You install Shorty on your server, so the links you create with it never go away. You can also manage your links and see how often people click on them.RubyURL was the first project that Robby Russell built and deployed with the Ruby on Rails framework in early 2005. It’s been running strong since then and until recently, was still running off of that original code base. During the summer of 2007, Robby teamed up with Chris Griffin, User Interface Designer at PLANET ARGON, for a complete rewrite and design of RubyURL.

 

 

<?php

 /*

 (c) 2006 Reed Morse <firstname.lastname at gmail.com>
 and Pau Santesmasses  <firstname at lastname.net>

*/


session_start();
$_SESSION['action'] = 'prefs';

require("functions.php");
require("configuration.php");

connect();
authenticate();

$user_id = getUserID();

$query_confirm = "SELECT * FROM `".$user_table."`";
$result_confirm = mysql_query($query_confirm);
$numrows = @mysql_num_rows($result_confirm);
$user = @mysql_fetch_array($result_confirm);
// I'm not sure why there are two of essentially the same thing, but the second will be better with multiple users
$query_user = "SELECT * FROM `".$user_table."` WHERE `id`='".$user_id."'";
$result_user = mysql_query($query_user);
$userA = mysql_fetch_array($result_user);

// Styles
$styles = opendir("./skin");
while($file = readdir($styles)){
 $styleArray[] = $file;
}
$styleCount = sizeof($styleArray);

echo '
 <img id="main-spinner" src="skin/'
.$user['theme'].'/spinner.gif" />

 <div id="prefs">
 <h2>Preferences</h2>
 <div>
 <form id="userInfo" action="setprefs.php" method="post" onsubmit="return false">
 <fieldset><label for="username"><input type="text" name="username" id="username" value="'
.$user['username'].'" />Login Name</label>
 <label for="email"><input type="text" name="email" id="email" value="'
.$user['email'].'" />Email</label>
 <label for="theme"><select name="theme" id="theme">'
;

 for($i = 0; $i <= $styleCount-1; $i++){
 if($styleArray[$i][0] !== "."){
 if($userA['theme'] == $styleArray[$i]){
 $sel = ' selected';
 } else {
 $sel = '';
 }
 echo '<option value="'.$styleArray[$i].'"'.$sel.'>'.$styleArray[$i].'</option>';
 }
 }

 echo '</select>Theme</label></fieldset>
 <input type="submit" name="submit" value="SAVE PREFS" id="prefsBtn" />
 </form>

 <form id="changePassword" action="setprefs.php" method="post" onsubmit="return false">
 <fieldset><label for="old"><input type="password" name="old" id="old" />Old Password</label>
 <label for="new1"><input type="password" name="new1" id="new1" />New Password</label>
 <label for="new2"><input type="password" name="new2" id="new2" />Again</label></fieldset>
 <input type="submit" name="submit" value="CHANGE" id="changePasswordButton" />
 </form>
 </div>
 </div>
</div>

 <script type="text/javascript" charset="utf-8">
 // <![CDATA[
 menu.unfold("prefsOption");
 buttonCollector.init("prefs");
 // ]]>
 </script>

'
;

?>

&amp;nbsp;

Scripts for Url shortening services Management

Since the popularity of Twitter started to rise and the 140 characters mania began, there has been an outburst of Url shortening services which allow you to sqeeze a long url in the given limited space. There are many url shortening services out there which are both free and easy to use. There is no doubt, that till services like Twitter are there, these url shortening services are no where to go.

 

 

<?php

 /*

 (c) 2006 Reed Morse <firstname.lastname at gmail.com>
 and Pau Santesmasses  <firstname at lastname.net>

*/


if(isset($_GET['step'])){
 $step = $_GET['step'];
} else {
 $step = '';
}

echo '
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 <html xmlns="http://www.w3.org/1999/xhtml">

 <head>
 <meta name="generator" content="HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org" />
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title>Shorty Installer</title>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
 <link type="text/css" rel="stylesheet" href="skin/originhal/style.css" />
 </head>

 <body>

 <div id="brand">
 <h1>Shorty</h1>
 </div>

 <div id="menu">
 <ul>
 </ul>
 </div>

 <div id="board">
 <div id="install">
 <h2>Shorty 0.7 Beta
 <span>Fresh Installation</span>
 <span>Copyright 2006 by Khoi Vinh and Reed Morse</span>
 </h2>
 <br />
 <dl id="versionHistory">'
;
if($step !== "2"){
 echo '
 <form id="install-form" action="_install.php?step=2" method="post">
 <dt>1.</dt>
 <dd>
 <p>
 <span>Hello</span><br />
 Thanks for downloading Shorty! Let\'s get it working.<br />First of all, please modify the configuration.php file with the correct values for your server. You can use a current database, as long as the table names don\'t conflict with Shorty\'s tables.<br /><br />These are the only values you should need to change in configuration.php:
 <ul>
 <li>$db[\'server\']</li>
 <li>$db[\'username\']</li>
 <li>$db[\'password\']</li>
 <li>$db[\'database\']</li>
 </ul>
 </p>
 </dd>

 <dt>2.</dt>
 <dd>
 <p>
 <span>Upload</span><br />
 Please ensure that you have uploaded all of the files and folders from the Shorty package. Many people neglect to upload the .htaccess file, as it is often hidden from Finder.
 </p>
 </dd>

 <dt>3.</dt>
 <dd>
 <p>
 <span>Create your user account</span><br />
 Set up your username and password for logging in, and your email address for password recovery.<br /><br />
 </p>
 <label>Username</label>
 <input type="text" name="username" value="" />
 <label>Password</label>
 <input type="password" name="password" value="" />
 <label>Again</label>
 <input type="password" name="again" value="" />
 <label>Email</label>
 <input type="text" name="email" value="" />
 </dd>

 <dt>4.</dt>
 <dd>
 <p>
 <input type="submit" value="Install!" />
 </p>
 </dd>
 </form>
 </dl>
 </div>'
;
}

if($step == "2"){
 echo '
 <dt> </dt>
 <dd>
 <p>
 '
;

 $i = 0;
 $x = 0;

 if(file_exists(".htaccess")){
 $i++;
 } else {
 echo '.htaccess doesn\'t seem to exist.<br />';
 }

 if(file_exists("configuration.php")){
 $i++;
 } else {
 echo 'configuration.php doesn\'t seem to exist.<br />';
 }

 if(file_exists("functions.php")){
 $i++;
 } else {
 echo 'functions.php doesn\'t seem to exist.<br />';
 }

 if($i == 3){
 require("configuration.php");
 require("functions.php");

 if(mysql_connect($db['server'],$db['username'],$db['password'])){
 $i++;
 } else {
 echo 'Could not establish a connection to the database. Check configuration.php for the correct values!';
 }
 }

 if($i == 4){
 if(mysql_select_db($db['database'])){
 $i++;
 } else {
 echo 'Could not select the database. Make sure it exists! Check configuration.php for the correct value!';
 }
 }

 if($i == 5){
 $password = $_POST['password'];
 $password_again = $_POST['again'];
 if($password == $password_again){
 $i++;
 } else {
 echo 'Your passwords don\'t match. Go back and try it again. Good thing we checked :)';
 }
 }

 if($i == 6){
 $query_users = "
 CREATE TABLE `"
.$user_table."` (
 `id` int(11) NOT NULL auto_increment,
 `username` text NOT NULL,
 `password` text NOT NULL,
 `name` text NOT NULL,
 `email` text NOT NULL,
 `theme` text NOT NULL,
 `perpage` text NOT NULL,
 `mode` text NOT NULL,
 `longURL` tinyint(1) NOT NULL,
 `level` int(1) NOT NULL default '2',
 PRIMARY KEY  (`id`)
 ) AUTO_INCREMENT=1 ;
 "
;

 if(mysql_query($query_users)){
 $i++;
 } else {
 echo 'Couldn\'t create the user table \''.$user_table.'\'. It probably already exists.';
 }
 }

 if($i == 7){
 $query_shorties = "
 CREATE TABLE `"
.$main_table."` (
 `id` int(11) NOT NULL auto_increment,
 `day` int(2) NOT NULL,
 `month` int(2) NOT NULL,
 `year` int(4) NOT NULL,
 `target` text NOT NULL,
 `clicks` int(11) NOT NULL default '0',
 `key1` text NOT NULL,
 `key2` text NOT NULL,
 `key3` text NOT NULL,
 `key4` text NOT NULL,
 `key5` text NOT NULL,
 PRIMARY KEY  (`id`)
 ) AUTO_INCREMENT=1 ;
 "
;

 if(mysql_query($query_shorties)){
 $i++;
 } else {
 echo 'Couldn\'t create the Shorty table \''.$main_table.'\'. It probably already exists.';
 }
 }

 if($i == 8){
 $md5 = md5($password);
 $username = strtolower($_POST['username']);
 $query_insert_user = "INSERT INTO `".$user_table."` (`username`, `password`, `email`, `level`, `theme`, `longURL`, `perpage`) VALUES ('".$username."', '".$md5."', '".$_POST['email']."', '2', 'originhal', '1', 'all')";

 if(mysql_query($query_insert_user)){
 $i++;
 } else {
 echo 'Couldn\'t insert you as a user. This error message should never been seen. Something strange is afoot.<br />';
 $x++;
 }
 }

 if($i == 9){
 $query_shorty = "INSERT INTO `".$main_table."` (`target`, `day`, `month`, `year`, `key1`) VALUES ('http://get-shorty.com', '".date('j')."', '".date('n')."', '".date('Y')."', 'shorty')";

 if(mysql_query($query_shorty)){
 $i++;
 } else {
 echo 'Couldn\'t insert a test Shorty. This error message should never been seen. Something strange is afoot.<br />';
 $x++;
 }
 }

 if($i == 10){
 // Check once more that the stuff was inserted without a problem
 $query_check_user = "SELECT * FROM `".$user_table."`";
 $query_check_shorty = "SELECT * FROM `".$main_table."`";
 $result_check_user = mysql_query($query_check_user);
 $result_check_shorty = mysql_query($query_check_shorty);

 if(mysql_num_rows($result_check_user)){
 $i++;
 } else {
 echo 'Couldn\'t insert the user into the database. Something\'s wrong.';
 }

 if(mysql_num_rows($result_check_shorty)){
 $i++;
 } else {
 echo 'Couldn\'t insert the test Shorty into the database. Something\'s wrong.';
 }
 }

 if($i == 12){
 //if(!($dir == "")) { $dir = '/'.$dir; }

 // Figure out where on the server the urls are
 $where = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
 $where = substr_replace($where, "", -13); // Remove /_install.php

 echo '<span>Shorty has been installed!</span><br />You should remove _install.php from the server.<br /><br />
 You can start using Shorty now (you\'ll have to login), here: <a href="'
.$where.'/index.php">'.$where.'/</a>.';
 } else {
 echo '<br /><br />Shorty wasn\'t installed successfully.';

 //$query_flush_VERY_BAD = "DROP TABLE `".$main_table."`, `".$user_table."`";
 }

 echo '</p>
 </dd>'
;
}

echo '
 </dl>
 </div>

 </body>
</html>
'
;

 ?>

&amp;nbsp;