This file contains hidden or 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
@echo off | |
rem Replacement for Manymo Command Line tool | |
rem See http://www.manymo.com/documentation/command-line-tool.html | |
if "%1"=="tunnel" goto :TUNNEL | |
:ERROR | |
echo Commands : | |
echo manymo tunnel port:host:password |
This file contains hidden or 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/php | |
<?php | |
// See http://www.php.net/manual/en/session.configuration.php#ini.session.save-path | |
function prepare_dir($base, $hash_chars, $depth, $number) { | |
if($depth<0) return $number; | |
if(!file_exists($base)) { | |
mkdir($base, 0777); | |
echo "$base\n"; |