[Openfirst-cvscommit] emoticon index.php,1.2,1.3
Brought to you by:
xtimg
From: <xt...@us...> - 2003-07-23 21:27:11
|
Update of /cvsroot/openfirst/emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv456 Modified Files: index.php Log Message: Add variable number of emoticons shown to index.php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 28 Jun 2003 15:46:27 -0000 1.2 --- index.php 23 Jul 2003 21:27:07 -0000 1.3 *************** *** 29,33 **** include($header); if(function_exists("emoticon_preview")) { ! emoticon_preview(); } else { echo("Emoticon functions are not enabled"); --- 29,40 ---- include($header); if(function_exists("emoticon_preview")) { ! if((int)$_GET["perpage"] == 0) { $_GET["perpage"] = 25; } ! if((int)$_GET["start"] == 0) { $_GET["start"] = 0; } ! echo("<form action='./' method='get'> ! start at emoticon <input type='text' name='start' value='" . $_GET["start"] ."' size='3'> showing ! <input type='text' name='perpage' value='" . $_GET["perpage"] ."' size='3'> emoticons per page ! <input type='submit' value='Show Emoticons'> ! </form>"); ! emoticon_preview($_GET["perpage"], $_GET["start"]); } else { echo("Emoticon functions are not enabled"); |