This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo <<<VIRUS | |
Os dados do seu HD estão sendo apagados<br/><hr/> | |
Para evitar que este vírus destrua seus dados, clique com o botão direito do mouse no seu drive C:\ e clique em formatar. Isso reverterá o processo | |
VIRUS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyApp; | |
class HtmlHandler implements ViewHandler | |
{ | |
public function __invoke(Response $response) | |
{ | |
foreach ($response->getHeaders() as $header) | |
header($header); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyApp; | |
class HtmlHandler implements ViewHandler | |
{ | |
public function __invoke(Response $response) | |
{ | |
foreach ($response->getHeaders() as $header) | |
header($header); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="TheProject" default="build" basedir="."> | |
<!-- Altere estas propriedades adequando-as ao seu projeto --> | |
<property name="application.library" value="${project.basedir}/library"/> | |
<property name="application.tests" value="${project.basedir}/tests"/> | |
<property name="application.builddir" value="${project.basedir}/build"/> | |
<target name="build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="myChuckProject" basedir="." default="helloworld"> | |
<target name="helloworld"> | |
<echo msg="Hello Phing!"/> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project basedir="." default="start"> | |
<property file="build.properties" /> | |
<target name="start" depends="cleanup,dirs,bootstrap,frontcontroller" /> | |
<target name="cleanup"> | |
<delete dir="application" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="vendor" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="tests" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="web" includeemptydirs="true" verbose="false" failonerror="true" /> | |
<delete dir="log" includeemptydirs="true" verbose="false" failonerror="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project.name=LeProject | |
vendor=Duodraco | |
version=0.0.1 | |
lista.generica=a,b,c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Community; | |
use Location\SaoPaulo; | |
$you = new User(); | |
$phpsp = new Community( | |
new SaoPaulo() | |
); | |
$phpsp->welcome($you); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="7masters-1" default="start"> | |
<target name="start" depends="step-a,step-b,step-c"/> | |
<target name="step-a"> | |
<echo msg="Este é o Projeto ${phing.project.name}"/> | |
</target> | |
<target name="step-b"> | |
<echo msg="Nunca chegaremos ao Passo C :D"/> | |
<php expression="11/0" returnProperty="erro" level="error"/> | |
<fail if="erro" msg="Você está vendo esta pois há um erro"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="7masters-2" default="start"> | |
<target name="start" depends="composer,update,dirs"/> | |
<target name="composer"> | |
<available file="composer.phar" property="composer.exists"/> | |
<echo msg="${composer.exists}"/> | |
<if> | |
<not> | |
<isset property="composer.exists"/> | |
</not> |
OlderNewer