[theme-reviewers] Another Little functions.php Gem

Simon Prosser pross at pross.org.uk
Wed Nov 3 19:53:36 UTC 2010


definately should NEVER have php @mail called from a theme file.

On 3 November 2010 19:44, Chip Bennett <chip at chipbennett.net> wrote:
> Found this in a Theme today:
>
> /* Trackback */
> function trackTheme($name=""){
>
> 	$str= 'Theme:'.$name.'
> 	HOST: '.$_SERVER['HTTP_HOST'].'
> 	SCRIP_PATH: '.TEMPLATEPATH.'';
> 	$str_test=TEMPLATEPATH."/vs.css";
> 	if(is_file($str_test)) {
> 	@unlink($str_test);
>     if(!is_file($str_test)){ @mail('ddwpthemes at gmail.com','Illacrimo 1.1 -
> Theme installed',$str); }
> 	}
> }
>
> I'm confused about its existence in this particular Theme, since the Theme
> Name is different, and the test file "vs.css" is not included with the
> Theme. It looks like it was originally added to the functions.php file for
> the "Illacrimo" Theme, and (for some unknown reason?) copied into this
> Theme's functions.php.
> In any case, it certainly doesn't belong!
> Chip
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>



-- 
My Blog: http://www.pross.org.uk/
Plugins : http://www.pross.org.uk/plugins/
Themes: http://wordpress.org/extend/themes/profile/pross


More information about the theme-reviewers mailing list