User:Cm~mediawikiwiki/ImagePlusphp

");	$out->addHTML( "" );   $out->addHTML( " ".wfMsg( 'edit_image_options' )." " );	$out->addHTML( " " );	$out->addHTML( " " );   $out->addHTML( " ".wfMsg( 'wiki_code' )." " );	// preview markup and insert button	$out->addHTML( "  " );

return true; }

/**	 * retrieves uploaded files from database *	 * param: wiki db object * return: results (filename, filesize,description,width,heigth) function fnGetAllFilenames( $dbr ) {

$res = $dbr->select('image', // FROM      array('img_name','img_size','img_description','img_width','img_height')); // SELECT //array, $fname, array('ORDER BY' => 'img_name'));// GROUP BY

return $res;

}

/**	 * retrieves last 10 uploaded files from database *	 * param: wiki db object * return:results (filename, filesize,description,width,heigth) function fnGetLastFilenames( $dbr ) {	$fname = ''; $res = $dbr->select('image', // FROM      array('img_name','img_size','img_description','img_width','img_height','img_timestamp'), // SELECT       array, $fname, array('ORDER BY' => 'img_timestamp desc', 'LIMIT' => '10'));// add. SQL options

return $res;

}

?>