summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-20 01:27:04 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-20 01:27:04 +0200
commite9b6a1018db89fb23d6e52e529f80ce11da09bd0 (patch)
treee4464a9971c9b6315691b29c315abbc2b6157dad /apps/user_openid
parent8f77179d292d8b874c84083864f98118f7a63612 (diff)
downloadnextcloud-server-e9b6a1018db89fb23d6e52e529f80ce11da09bd0.tar.gz
nextcloud-server-e9b6a1018db89fb23d6e52e529f80ce11da09bd0.zip
remove unneeded definiton of get_temp_dir
Diffstat (limited to 'apps/user_openid')
-rw-r--r--apps/user_openid/phpmyid.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/apps/user_openid/phpmyid.php b/apps/user_openid/phpmyid.php
index c984dc8f5e6..ef01e7a046d 100644
--- a/apps/user_openid/phpmyid.php
+++ b/apps/user_openid/phpmyid.php
@@ -1373,41 +1373,6 @@ function str_diff_at ($a, $b) {
return $n;
}
-
-if (! function_exists('get_temp_dir')) {
-/**
- * Create function if missing
- * @return string
- */
- if (ini_get('open_basedir') == false) {
- function get_temp_dir () {
- $keys = array('TMP', 'TMPDIR', 'TEMP');
- foreach ($keys as $key) {
- if (isset($_ENV[$key]) && is_dir($_ENV[$key]) && is_writable($_ENV[$key]))
- return realpath($_ENV[$key]);
- }
-
- $tmp = tempnam(false, null);
- if (file_exists($tmp)) {
- $dir = realpath(dirname($tmp));
- unlink($tmp);
- return realpath($dir);
- }
-
- return realpath(dirname(__FILE__));
- }
- }
- else {
- function get_temp_dir () {
- if (isset(ini_get('upload_tmp_dir')) && is_dir(ini_get('upload_tmp_dir')) && is_writable(ini_get('upload_tmp_dir')))
- return ini_get('upload_tmp_dir');
- else
- return realpath(dirname(__FILE__));
- }
- }
-}
-
-
/**
* Determine if a child URL actually decends from the parent, and that the
* parent is a good URL.