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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import subprocess | |
import string | |
import os | |
HOOK_DIR = os.path.dirname(os.path.realpath(__file__)) | |
ROOT_DIR = os.path.dirname(os.path.dirname(HOOK_DIR)) |
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 | |
function saveFtpFile( $targetFile = null, $sourceFile = null, $ftpuser = null, $ftppassword = null ){ | |
// function settings | |
$timeout = 50; | |
$fileOpen = 'w+'; | |
$curl = curl_init(); | |
$file = fopen (dirname(__FILE__) . '/'.$targetFile, $fileOpen); |
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
[2013-07-08 11-05-25] PHP Warning: Attempt to assign property of non-object in [path_hidden]/libs/Nette/Config/Configurator.php:48 [url_hidden] | |
[2013-07-08 11-05-25] Nette\InvalidStateException: Callback '' is not callable. in [path_hidden]/libs/Nette/common/Callback.php:90 [url_hidden] | |
[2013-07-08 11-05-25] PHP Warning: Attempt to assign property of non-object in [path_hidden]/libs/Nette/Utils/Html.php:97 [url_hidden] | |
[2013-07-08 11-05-25] PHP Warning: Attempt to assign property of non-object in [path_hidden]/libs/Nette/Utils/Html.php:98 [url_hidden] | |
[2013-07-08 11-05-25] PHP Warning: Attempt to assign property of non-object in [path_hidden]/libs/Nette/Utils/Html.php:440 [url_hidden] | |
[2013-07-08 11-07-14] PHP Warning: Attempt to assign property of non-object in [path_hidden]/libs/Nette/Config/Configurator.php:48 [url_hidden] | |
[2013-07-08 11-07-14] PHP Notice: Undefined index: environment in [path_hidden]/libs/Nette/Config/Configurator.php:162 [url_hidden] | |
[2013-07-08 11-07-14] PHP Notice: Undefined ind |
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 | |
class A { | |
private $property = "This text should be ALLWAYS accessible\n"; | |
public function doSomething(A $instance) { | |
if($instance === $this) { | |
echo $this->property; |