View file autoindex/plugins/screenshot2_plugin.php

File size: 973B
<?php

//mai plugin maker
//ionutvmi@gmail.com
//master-land.net


$plugins->add_hook("index","screenshot_adding");

function screenshot2_info(){
	/**
	* Array containing info about your plugin
	* name - plugin name witch will be displayed in Manager
	* author - author name(s)
	* author_site - author site if you don't have keep it blank
	* description - a very small description about this plugin
	*/
	return	array(	
	"name" => "Site ScreenShotter Plugin v2",
	"author" => "Sathwik SK",
	"author_site" => "http://skblog.heck.in",
	"description" => "By these plugin screenshot will be created by your site,It will not depend on other site",
	);
}
function screenshot_adding($value)
{
global $dir,$set;
// here you can edit the html

if(!$dir)
$value .="<div class='content'><a href='$set->url/screenshot2.php'><img src='$set->url/".MAI_TPL."style/images/gdir.gif' alt='.'/>&nbsp;Online website ScreenShotter</a></div>";
return $value;
}
?>