r>", ) ); } } $ADMIN->html .= $SKIN->end_table(); //+------------------------------- $emos = array(); if (! is_dir($INFO['html_dir'].'emoticons') ) { $ADMIN->error("Could not locate the emoticons directory - make sure the 'html_dir' path is set correctly"); } //+------------------------------- $cnt = 0; $start = ""; $dh = opendir( $INFO['html_dir'].'emoticons' ) or die("Could not open the emoticons directory for reading, check paths and permissions"); while ( $file = readdir( $dh ) ) { if ( !preg_match( "/^..?$|^index|htm$|html$|^\./i", $file ) ) { $emos[] = array( $file, $file ); if ($cnt == 0) { $cnt = 1; $start = $file; } } } closedir( $dh ); //+------------------------------- $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'emo_add' ), 2 => array( 'act' , 'op' ), ) ); $SKIN->td_header[] = array( "Before" , "40%" ); $SKIN->td_header[] = array( "After" , "40%" ); $SKIN->td_h