Linux
- 11 ответов
- 0 вопросов
3
Вклад в тег
git fsck --lost-found --full
class Auth:
_instance = None;
def __init__(self, user, pswd):
# some initialization
self._id = None
pass
def getId(self):
return self._id
@staticmethod
def getInstance(user, pswd):
if Auth._instance is None:
Auth._instance = Auth(user, pswd)
return Auth._instance
# later use authorization as Auth.getInstance().getId();
$('#form').submit(function(e) {
var $form = $(this);
console.log($form.serialize());
return false;
...
});
var_dump($_POST); die();
if (isset($_SERVER['argc']) && isset($_SERVER['argv'])) {
define('SELFSERVICE', 1);
}
if (defined('SELFSERVICE')) {
echo "I'm a service";
} else {
echo "I'm a web-dispatcher";
}
curl "http://name.site/script.php?cron=1"