[Pkg-owncloud-commits] [php-sabredav] 19/42: Removed these broken and way old examples.
David Prévot
taffit at moszumanska.debian.org
Wed Jul 23 16:41:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 695c268713f7ef22007e86b86aac08fa1fa49df8
Author: Evert Pot <me at evertpot.com>
Date: Wed Jun 4 17:21:40 2014 -0400
Removed these broken and way old examples.
---
examples/basicauth.php | 26 --------------------------
examples/digestauth.php | 25 -------------------------
2 files changed, 51 deletions(-)
diff --git a/examples/basicauth.php b/examples/basicauth.php
deleted file mode 100644
index 743c07c..0000000
--- a/examples/basicauth.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-// !!!! Make sure the Sabre directory is in the include_path !!!
-// example:
-// set_include_path('lib/' . PATH_SEPARATOR . get_include_path());
-
-// settings
-date_default_timezone_set('Canada/Eastern');
-
-// Files we need
-require_once 'vendor/autoload.php';
-
-$u = 'admin';
-$p = '1234';
-
-$auth = new \Sabre\HTTP\BasicAuth();
-
-$result = $auth->getUserPass();
-
-if (!$result || $result[0]!=$u || $result[1]!=$p) {
-
- $auth->requireLogin();
- echo "Authentication required\n";
- die();
-
-}
diff --git a/examples/digestauth.php b/examples/digestauth.php
deleted file mode 100644
index 1f4a74b..0000000
--- a/examples/digestauth.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-// !!!! Make sure the Sabre directory is in the include_path !!!
-// example:
-// set_include_path('lib/' . PATH_SEPARATOR . get_include_path());
-
-// settings
-date_default_timezone_set('Canada/Eastern');
-
-// Files we need
-require_once 'vendor/autoload.php';
-
-$u = 'admin';
-$p = '1234';
-
-$auth = new \Sabre\HTTP\DigestAuth();
-$auth->init();
-
-if ($auth->getUsername() != $u || !$auth->validatePassword($p)) {
-
- $auth->requireLogin();
- echo "Authentication required\n";
- die();
-
-}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list