USE AT OWN RISK
Generated: Tue Jul 31 15:22:06 2007 from imgs10.php 2005/12/10 4.1 KB bytes.
<?php include ( "menuinc10.php" ); ?><html> <head> <meta http-equiv="Content-Language" content="en-au"> <meta name="keywords" content="friendofflowers, greenplanet, friend, of, flowers, flowerking, flower, king, sydney, australia, mobile, markets, local, produce"> <meta name="description" content="Russell Sharp - the flower king - friend of flowers - syndey, australia, vending local produce, on street, and in markets ..."> <link href="homestyle.css" rel="stylesheet" type="text/css"> <?php printJavaStuff10(); ?> <title>Friend of Flowers - Image Viewer 10</title> </head> <body> <div align="center" style="position:absolute; top:0px; left:10px; visibility:visible;"> <?php printMenu10(); ?></div> <br><br> <?php // this could be set from say a 'global.php' include ... which sets ... $m_package = 'imgs10.php'; // set a SELF value $m_folder = 'images/.'; // set the images folder //$m_folder = 'c:/HOMEPAGE/russ8/images/.'; // set the images folder $m_page = 2; // $m_page = 8; $m_case = 'flowers'; //$m_case = 'family'; // test family //$m_type = '*'; // '*' matches ALL (was '?'), assuming 'asterisk' allowed as param? $m_type = 'a'; $m_pg_max = 10; // establish MAXIMUM pages to show in menu line $m_max_dflo = 9; // default max out for FLOWERS $m_max_dfam = 10; // default max out for FAMILY $m_row_wrap = 3; $m_max_out = $m_max_dflo; // get the page, case, type, wrap, max values, if any if (isset($_GET['page'])) { $m_page = $_GET['page']; } if (isset($_GET['case'])) { $m_case = $_GET['case']; } if (isset($_GET['type'])) { $m_type = $_GET['type']; } if (isset($_GET['wrap'])) { $m_row_wrap = $_GET['wrap']; } if (isset($_GET['max']) ) { $m_max_out = $_GET['max']; } // moderate page if($m_page < 1) $m_page = 1; // get the case value if ($m_case == 'family') { // set DEFAULT for 'family' display $m_row_wrap = 5; if ( $m_max_out != -1 ) { $m_max_out = 10; } } // test ALL //$m_max_out = -1; // menu $m_n_case = 'family'; if ($m_case == 'family') { $m_n_case = 'flowers'; } // variables below filled in during running ... $m_mostcnt = 0; $m_mostrec = 0; // a file date time ... something, since the beginning of *nix! $m_mostnam = ' '; $m_mostarr = array(); $m_msg = ' '; // index fo the FIRST and LAST table outputs $m_first_out = -1; $m_last_out = -1; // add global $m_first_out, $m_last_out; include ( "phpinc10.php" ); // start HTML output if ( $m_case == 'family') { echo "<h1 align=center>Family Photos</h1>"; } else { // default flowers echo "<h1 align=center>Flowercam</h1>"; } // out_the_menu2 (); if ( $m_case == 'family' ) { // getDirListDSC ($m_folder, &$m_mostrec, &$m_mostnam, &$m_mostcnt, &$m_mostarr, $m_type ); getDirListDSC10 ($m_folder, $m_type ); echo "<center> <table border=0 width=500><tr><td><font size=2> We are creating a permanent social history of the flower buying public<br> to create a sense of community and reduce urban isolation.<p> <a href=\"forum-chron.php\">Ideas and contributions are welcome:</a> This site belongs to everybody.</td></tr></table> </center>"; } else { // default is 'flowers'! //getDirList2 ($m_folder, $m_mostrec, &$m_mostnam, &$m_mostcnt, &$m_mostarr, $m_type ); getDirList10 ($m_folder, $m_type ); } // the directory, folder SCAN has been done ... the necessary 'files' have been collected // sanity CHECK only - SHOULD NEVER HAPPEN ;=)) $imx = count ($m_mostarr); $e_msg = ''; // zero an error message if ($imx != $m_mostcnt) { $e_msg = "<h1 align='center'>note: imx=$imx not equal m_mostcnt=$m_mostcnt sanity exceeded!</h1>\r\n"; } $m_msg = add_b_span10( getPageMenu10() ); print "\r\n$m_msg\r\n"; $d_msg = ordDirList10 (); // add the 'chosen' array of images, in a TABLE // returning an information message printFooterMenu10(); print "\r\n". add_font_2($d_msg). "\r\n"; // add the information line ?> </body> </html> <!-- 10 December 2005 imgs10.php - grm --> <!-- 26 August 2005 imgs2.php - km --> <!-- 13 August 2005 - imgs.php Version 0.0.3 - friendofflowers.com - grm macpcfirstaid.com -->