<?php // styles.php -> Admin Panel options for Styles.
require("access.php");
require("global.php");
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ @@
// @@ ++++++++++++++++++ @@
// @@ ++ InstaCounter ++ Version: 1.0 @@
// @@ ++++++++++++++++++ @@
// @@ @@
// @@ InstaCounter was developed by Christophe Johanns. Therefore @@
// @@ he owns the copyright to all files of this script. Feel free @@
// @@ to modify the code for PERSONAL use. @@
// @@ @@
// @@ Copyright © 2001 Christophe Johanns. All rights reserved. @@
// @@ @@
// @@ Support: http://www.freesources.net/instacounter.php @@
// @@ Comments: hide@address.com @@
// @@ @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ LEFT MENU @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if($public!="1") {
if($action!="addstyle" && $action!="modifystyle") {
$otherfile="1";
$action2="firsthtml";
include("./admin.php");
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ ADD STYLE OK @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if($action=="addstyleok") {
echo" <p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>Changes made succesfully.</font><br><br>";
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ MODIFY STYLE OK @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if($action=="modifystyleok") {
echo" <p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>Changes made succesfully.</font><br><br>";
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ GET STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="getstyle" || $action=="addstyleok" || $action=="modifystyleok") {
if (!$db) { print "There was an error connecting to the database."; } else {
$query = mysql_query("SELECT * FROM InstaCounter_Styles WHERE cid='$id'"); $handle = mysql_fetch_array($query);
$example=$handle[nleft] . $handle[n1] . $handle[n2] . $handle[n3] . $handle[n4] . $handle[n5] . $handle[n6] . $handle[n7] . $handle[n8] . $handle[n9] . $handle[n0] . $handle[nright];
echo "<div align=\"center\"><center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"><tr><td width=\"100%\" bgcolor=\"#FFFFFF\"><div align=\"center\"><center><table border=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#006D8A\"><b><font face=\"Verdana\" color=\"#FFFFFF\" size=\"2\"> Style: $handle[name]</font></b></td></tr><tr><td width=\"100%\" bgcolor=\"#CCCCCC\"><p style=\"margin-left: 10; margin-right: 10\"><font size=\"1\" face=\"Verdana\"><img border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><br>Example:<br>$example<br><img border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></font></td></tr></table></center></div></td></tr></table></center></div>";
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ LIST STYLES @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="liststyles") {
if (!$db) { print "There was an error connecting to the database."; } else {
// Get Prev/Next links.
$query=mysql_query("SELECT * FROM InstaCounter_Styles");
$numrows = mysql_num_rows($query);
if($public=="1") { $limit=$numrows; } else { $limit="10"; }
$pages=intval($numrows/$limit);
if ($numrows%$limit) { $pages++; }
$first_record=$start+"1";
if (!((($start)/$limit)+1==$pages)) { $last_record = $start + $limit; } else { $last_record = $numrows; }
if ($start != 0) { $prevoffset=$start-$limit; $prevlink="« <a href=\"styles.php?start=$prevoffset&action=liststyles\">Prev</a> \n"; }
if ($pages != 1 ) { for ($i=1;$i<=$pages;$i++) { $newoffset=$limit*($i-1); if ( ((($start)/$limit)==($i-1)) ) { $current="$i \n"; } else { $links="<a href=\"styles.php?start=$newoffset&action=liststyles\">$i</a> \n"; } } } if (!((($start)/$limit)+1==$pages) && $pages!=1) { $newoffset=$start+$limit; $nextlink="<a href=\"styles.php?start=$newoffset&action=liststyles\">Next</a> »"; }
$q=mysql_query("SELECT * FROM InstaCounter_Styles ORDER BY cid ASC LIMIT $start,$limit");
while ($latest_array = mysql_fetch_array($q)) {
$example=$latest_array[nleft] . $latest_array[n1] . $latest_array[n2] . $latest_array[n3] . $latest_array[n4] . $latest_array[n5] . $latest_array[n6] . $latest_array[n7] . $latest_array[n8] . $latest_array[n9] . $latest_array[n0] . $latest_array[nright];
$htmlcode=$htmlcode . "<TR> <TD width=\"50%\" bgcolor=\"#000000\"><B><FONT face=\"Verdana\" size=\"1\" color=\"#FFFFFF\"> $latest_array[name] (id: $latest_array[cid])</FONT></B></TD> </TR> <TR> <TD width=\"50%\" bgcolor=\"#CCCCCC\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\" face=\"Verdana\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> Example:<BR> <BR>$example<BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR>";
}
if(!isset($htmlcode)){
$htmlcode="<TR> <TD width=\"50%\" bgcolor=\"#CCCCCC\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\" face=\"Verdana\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> No styles to display.<BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR>";
}
echo "<DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\" colspan=\"2\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><B><FONT face=\"Verdana\" size=\"2\"> <FONT color=\"#FFFFFF\">List of styles</FONT></FONT></B></TD> </TR> $htmlcode</TABLE> </DIV> </TD> </TR> <TR> <TD width=\"50%\"><FONT face=\"Verdana\" size=\"1\" color=\"#000000\"><BR>Displaying counters $first_record to $last_record of a total of $numrows.</TD><TD width=\"50%\" align=\"right\"><FONT face=\"Verdana\" size=\"2\" color=\"#000000\"><B>$prevlink $nextlink</B></TD></TR></TABLE> </CENTER> </DIV>";
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ ADD STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="addstyle") {
// Check form entries.
if($name=="") { $error=$error . "<br>You did not fill in a valid name."; }
if (!$db) { print "There was an error connecting to the database."; } else {
$q = mysql_query("SELECT Name FROM InstaCounter_Styles WHERE name='$name'"); $h = mysql_fetch_array($q);
if(isset($h[name])){ $error=$error . "<br>Name already taken."; } }
// Process form entries.
if($error<>"") { echo("<FONT face=Verdana size=3><B>Error:</B><BR><FONT size=2>$error</FONT></FONT>"); } else {
if (!$db) { print "There was an error connecting to the database."; } else {
mysql_query("INSERT INTO InstaCounter_Styles (cid, name, n1, n2, n3, n4, n5, n6, n7, n8, n9, n0, nleft, nright) VALUES ('', '$name', '$n1', '$n2', '$n3', '$n4', '$n5', '$n6', '$n7', '$n8', '$n9', '$n0', '$nleft', '$nright')");
$query = mysql_query("SELECT * FROM InstaCounter_Styles WHERE name='$name'"); $handle = mysql_fetch_array($query);
header("Location: styles.php?action=addstyleok&id=$handle[cid]");
}
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ ADD STYLE FORM @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="addstyleform") {
echo "<FORM action=\"styles.php?action=addstyle\" method=\"post\"><DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><B><FONT face=\"Verdana\" size=\"2\"> <FONT color=\"#FFFFFF\">Add a style</FONT></FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><B><FONT face=\"Verdana\" size=\"1\" color=\"#FFFFFF\"> Name</FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> Name: (max 20 char.)<BR> </FONT><FONT size=\"1\"><INPUT type=\"text\" name=\"name\" size=\"28\" style=\"font-family: Verdana; font-size: 10pt\" maxlength=\"20\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> Fill in a meaningful name for the style you want to add.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><B><FONT face=\"Verdana\" size=\"1\" color=\"#FFFFFF\"> HTML left from counter</FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"nleft\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You can set a HTML code to be put left of your counter. You can leave this blank if not necessary.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT color=\"#FFFFFF\" size=\"1\" face=\"Verdana\"><B> HTML right from counter</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"nright\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You can set a HTML code to be put right of your counter. You can leave this blank if not necessary.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "1"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n1\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "1". You need to provide some code so the counter displays 1 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "2"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n2\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "2". You need to provide some code so the counter displays 2 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "3"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n3\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "3". You need to provide some code so the counter displays 3 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "4"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n4\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "4". You need to provide some code so the counter displays 4 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "5"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n5\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "5". You need to provide some code so the counter displays 5 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "6"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n6\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "6". You need to provide some code so the counter displays 6 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "7"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n7\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "7". You need to provide some code so the counter displays 7 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "8"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n8\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "8". You need to provide some code so the counter displays 8 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "9"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n9\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "9". You need to provide some code so the counter displays 9 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "0"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n0\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\"></TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "0". You need to provide some code so the counter displays 0 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\"> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"4\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <P align=\"center\"><INPUT type=\"submit\" value=\"Add new style\" name=\"submit\" style=\"font-family: Verdana; font-size: 10pt; font-weight: bold\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </CENTER> </DIV></FORM>";
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ DISPLAY LIST TO SEE MODIFY STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="displaymodstyle") {
if (!$db) { print "There was an error connecting to the database."; } else {
// Get Prev/Next links.
$limit="10";
$query=mysql_query("SELECT * FROM InstaCounter_Styles");
$numrows = mysql_num_rows($query);
$pages=intval($numrows/$limit);
if ($numrows%$limit) { $pages++; }
$first_record=$start+"1";
if (!((($start)/$limit)+1==$pages)) { $last_record = $start + $limit; } else { $last_record = $numrows; }
if ($start != 0) { $prevoffset=$start-$limit; $prevlink="« <a href=\"styles.php?start=$prevoffset&action=displaymodstyle\">Prev</a> \n"; }
if ($pages != 1 ) { for ($i=1;$i<=$pages;$i++) { $newoffset=$limit*($i-1); if ( ((($start)/$limit)==($i-1)) ) { $current="$i \n"; } else { $links="<a href=\"styles.php?start=$newoffset&action=displaymodstyle\">$i</a> \n"; } } } if (!((($start)/$limit)+1==$pages) && $pages!=1) { $newoffset=$start+$limit; $nextlink="<a href=\"styles.php?start=$newoffset&action=displaymodstyle\">Next</a> »"; }
$q=mysql_query("SELECT * FROM InstaCounter_Styles ORDER BY cid ASC LIMIT $start,$limit");
while ($latest_array = mysql_fetch_array($q)) {
$example=$latest_array[nleft] . $latest_array[n1] . $latest_array[n2] . $latest_array[n3] . $latest_array[n4] . $latest_array[n5] . $latest_array[n6] . $latest_array[n7] . $latest_array[n8] . $latest_array[n9] . $latest_array[n0] . $latest_array[nright];
$htmlcode=$htmlcode . "<div align=\"center\"><center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"><tr><td width=\"100%\" bgcolor=\"#FFFFFF\"><div align=\"center\"><center><table border=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#000000\"><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><b> " . $latest_array[name] . " (id:" . $latest_array[cid] . ")</b></font></td></tr><tr><td width=\"33%\" bgcolor=\"#CCCCCC\"><P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><br><font size=\"1\" face=\"Verdana\" color=\"#000000\"><b>Example:</b><br><br>$example</font><br><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></td></tr></table></center></div></td></tr><tr><td width=\"100%\" bgcolor=\"#CCCCCC\"><img border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></td></tr><tr><td width=\"100%\"><div align=\"center\"><table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#CCCCCC\"><p align=\"center\"><font size=\"1\" face=\"Verdana\"><form method=\"post\" action=\"styles.php?action=modifystyleform\"><p align=\"center\"><input type=\"hidden\" name=\"id\" value=\"" . $latest_array[cid] ."\"><input type=\"submit\" value=\"Modify this Style\" name=\"Modify\" style=\"font-family: Verdana; font-size: 8pt; font-weight: bold\"></form></font></td></tr></table></div></td></tr></table></center></div>";
}
if (isset($htmlcode)){ echo "$htmlcode<DIV align=\"center\"><CENTER><TABLE width=\"80%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><TR> <TD width=\"50%\" bgcolor=\"#CCCCCC\"><FONT face=\"Verdana\" size=\"1\" color=\"#000000\"><BR>Displaying styles $first_record to $last_record of a total of $numrows.</TD><TD width=\"50%\" bgcolor=\"#CCCCCC\" align=\"right\"><FONT face=\"Verdana\" size=\"2\" color=\"#000000\"><B>$prevlink $nextlink</B></TD></TR></TABLE></CENTER></DIV>"; } else { echo"<p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>No styles to modify!</font><br><br><br><br><br><br><br><br><br><br><br><br>"; }
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ DISPLAY LIST TO SEE DELETE STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="displaydelstyle") {
if (!$db) { print "There was an error connecting to the database."; } else {
// Get Prev/Next links.
$limit="10";
$query=mysql_query("SELECT * FROM InstaCounter_Styles");
$numrows = mysql_num_rows($query);
$pages=intval($numrows/$limit);
if ($numrows%$limit) { $pages++; }
$first_record=$start+"1";
if (!((($start)/$limit)+1==$pages)) { $last_record = $start + $limit; } else { $last_record = $numrows; }
if ($start != 0) { $prevoffset=$start-$limit; $prevlink="« <a href=\"styles.php?start=$prevoffset&action=displaydelstyle\">Prev</a> \n"; }
if ($pages != 1 ) { for ($i=1;$i<=$pages;$i++) { $newoffset=$limit*($i-1); if ( ((($start)/$limit)==($i-1)) ) { $current="$i \n"; } else { $links="<a href=\"styles.php?start=$newoffset&action=displaydelstyle\">$i</a> \n"; } } } if (!((($start)/$limit)+1==$pages) && $pages!=1) { $newoffset=$start+$limit; $nextlink="<a href=\"styles.php?start=$newoffset&action=displaydelstyle\">Next</a> »"; }
$q=mysql_query("SELECT * FROM InstaCounter_Styles ORDER BY cid ASC LIMIT $start,$limit");
while ($latest_array = mysql_fetch_array($q)) {
$example=$latest_array[nleft] . $latest_array[n1] . $latest_array[n2] . $latest_array[n3] . $latest_array[n4] . $latest_array[n5] . $latest_array[n6] . $latest_array[n7] . $latest_array[n8] . $latest_array[n9] . $latest_array[n0] . $latest_array[nright];
$htmlcode=$htmlcode . "<div align=\"center\"><center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"><tr><td width=\"100%\" bgcolor=\"#FFFFFF\"><div align=\"center\"><center><table border=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#000000\"><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><b> " . $latest_array[name] . " (id:" . $latest_array[cid] . ")</b></font></td></tr><tr><td width=\"33%\" bgcolor=\"#CCCCCC\"><P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><br><font size=\"1\" face=\"Verdana\" color=\"#000000\"><b>Example:</b><br><br>$example</font><br><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></td></tr></table></center></div></td></tr><tr><td width=\"100%\" bgcolor=\"#CCCCCC\"><img border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></td></tr><tr><td width=\"100%\"><div align=\"center\"><table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#CCCCCC\"><p align=\"center\"><font size=\"1\" face=\"Verdana\"><form method=\"post\" action=\"styles.php?action=deletestyle\"><p align=\"center\"><input type=\"hidden\" name=\"id\" value=\"" . $latest_array[cid] ."\"><input type=\"submit\" value=\"Delete this Style\" name=\"Delete\" style=\"font-family: Verdana; font-size: 8pt; font-weight: bold\"></form></font></td></tr></table></div></td></tr></table></center></div>";
}
if (isset($htmlcode)){ echo "$htmlcode<DIV align=\"center\"><CENTER><TABLE width=\"80%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><TR> <TD width=\"50%\" bgcolor=\"#CCCCCC\"><FONT face=\"Verdana\" size=\"1\" color=\"#000000\"><BR>Displaying styles $first_record to $last_record of a total of $numrows.</TD><TD width=\"50%\" bgcolor=\"#CCCCCC\" align=\"right\"><FONT face=\"Verdana\" size=\"2\" color=\"#000000\"><B>$prevlink $nextlink</B></TD></TR></TABLE></CENTER></DIV>"; } else { echo"<p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>No styles to delete!</font><br><br><br><br><br><br><br><br><br><br><br><br>"; }
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ DELETE STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="deletestyle") {
if (isset($validate)) {
if (!$db) { print "There was an error connecting to the database."; } else {
mysql_query("DELETE FROM InstaCounter_Styles WHERE cid='$id'");
echo "<p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>Changes made succesfully.</font><br><br><br><br><br><br><br><br><br><br><br><br>";
}
}
else {
echo "<FORM action=\"styles.php?action=deletestyle&validate=1&id=$id\" method=\"post\"><DIV align=\"center\"><CENTER><TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"><TR><TD width=\"100%\" bgcolor=\"#FFFFFF\"><DIV align=\"center\"><CENTER><TABLE border=\"0\" cellspacing=\"1\" width=\"100%\" cellpadding=\"0\"><TR><TD width=\"100%\" bgcolor=\"#006D8A\"><B><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"2\"> Confirm delete</FONT></B></TD></TR><TR><TD width=\"100%\"><DIV align=\"center\"><TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"></CENTER><TR><TD width=\"100%\" bgcolor=\"#CCCCCC\" valign=\"top\"><P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\" face=\"Verdana\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR>Are you sure you want to delete this style? If not just hit the Back button of your browser.<BR><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD></TR></TABLE></DIV></TD></TR></CENTER></TABLE></DIV></TD></TR><TR><TD width=\"100%\" bgcolor=\"#CCCCCC\"> </TD></TR><TR><TD width=\"100%\" bgcolor=\"#FFFFFF\"><DIV align=\"center\"><CENTER><TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><TR><TD width=\"100%\" bgcolor=\"#CCCCCC\"><P align=\"center\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><BR><INPUT type=\"submit\" value=\"Delete style\" name=\"submit\" style=\"font-family: Verdana; font-size: 10pt; font-weight: bold\"><BR><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD></TR></TABLE></CENTER></DIV></TD></TR></TABLE></DIV></FORM>";
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ MODIFY STYLE FORM @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="modifystyleform") {
if (!$db) { print "There was an error connecting to the database."; } else {
$query = mysql_query("SELECT * FROM InstaCounter_Styles WHERE cid='$id'"); $handle = mysql_fetch_array($query);
echo "<FORM action=\"styles.php?action=modifystyle\" method=\"post\"><input type=\"hidden\" name=\"id\" value=\"$handle[cid]\"><DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><B><FONT face=\"Verdana\" size=\"2\"> <FONT color=\"#FFFFFF\">Add a style</FONT></FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><B><FONT face=\"Verdana\" size=\"1\" color=\"#FFFFFF\"> Name</FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> Name: (max 20 char.)<BR> </FONT><FONT size=\"1\"><INPUT type=\"text\" name=\"name\" size=\"28\" style=\"font-family: Verdana; font-size: 10pt\" maxlength=\"20\" value=\"$handle[name]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> Fill in a meaningful name for the style you want to add.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><B><FONT face=\"Verdana\" size=\"1\" color=\"#FFFFFF\"> HTML left from counter</FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"nleft\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[nleft]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You can set a HTML code to be put left of your counter. You can leave this blank if not necessary.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT color=\"#FFFFFF\" size=\"1\" face=\"Verdana\"><B> HTML right from counter</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"nright\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[nright]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You can set a HTML code to be put right of your counter. You can leave this blank if not necessary.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "1"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n1\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n1]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "1". You need to provide some code so the counter displays 1 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "2"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n2\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n2]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "2". You need to provide some code so the counter displays 2 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "3"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n3\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n3]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "3". You need to provide some code so the counter displays 3 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "4"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n4\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n4]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "4". You need to provide some code so the counter displays 4 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "5"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n5\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n5]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "5". You need to provide some code so the counter displays 5 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "6"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n6\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n6]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "6". You need to provide some code so the counter displays 6 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "7"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n7\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n7]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "7". You need to provide some code so the counter displays 7 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "8"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n8\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n8]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "8". You need to provide some code so the counter displays 8 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "9"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n9\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n9]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "9". You need to provide some code so the counter displays 9 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT size=\"1\" face=\"Verdana\" color=\"#FFFFFF\"><B> HTML for "0"</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT face=\"Verdana\" size=\"1\"><BR> HTML code: (max 200 char.)<BR> </FONT><TEXTAREA rows=\"4\" name=\"n0\" cols=\"28\" style=\"font-family: Verdana; font-size: 10pt\">$handle[n0]</TEXTAREA><FONT size=\"1\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\" bgcolor=\"#CCCCCC\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT><FONT size=\"1\" face=\"Verdana\"><BR> You have to set a HTML code for the number "0". You need to provide some code so the counter displays 0 if it has to. Be sure it is included, whether in an image or as text.<BR> </FONT><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></P> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"><FONT size=\"1\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </CENTER> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\"> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"4\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <P align=\"center\"><INPUT type=\"submit\" value=\"Modify style\" name=\"submit\" style=\"font-family: Verdana; font-size: 10pt; font-weight: bold\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </CENTER> </DIV></FORM>";
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ MODIFY STYLE @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if ($action=="modifystyle") {
// Check form values.
if($name=="") { $error=$error . "<br>You did not fill in a valid name."; }
if (!$db) { print "There was an error connecting to the database."; } else { $q = mysql_query("SELECT Name FROM InstaCounter_Styles WHERE name='$name'"); $h = mysql_fetch_array($q); if(isset($h[name])){ $error=$error . "<br>Name already taken."; } }
// Update values.
if($error<>"") { echo("<FONT face=Verdana size=3><B>Error:</B><BR><FONT size=2>$error</FONT></FONT>"); } else {
if (!$db) { print "There was an error connecting to the database."; } else {
mysql_query("UPDATE InstaCounter_Styles set name='$name',nleft='$nleft',nright='$nright',n1='$n1',n2='$n2',n3='$n3',n4='$n4',n5='$n5',n6='$n6',n7='$n7',n8='$n8',n9='$n9',n0='$n0' WHERE cid='$id'");
header("Location: styles.php?action=modifystyleok&id=$id");
}
}
}
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@ FOOTER @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if($public!="1") {
if($action!="addstyle" && $action!="modifystyle") {
$otherfile="1";
$action2="lasthtml";
include("./admin.php");
}
}
?>