Ver Fonte

Aggiunti file mancanti dal priimo commit

cek há 8 anos atrás
pai
commit
f9ec3e507c
4 ficheiros alterados com 86 adições e 0 exclusões
  1. 5 0
      .htaccess
  2. 22 0
      arav_up.php
  3. 55 0
      arav_up_confs.php
  4. 4 0
      test.php

+ 5 - 0
.htaccess

@@ -0,0 +1,5 @@
+SetEnv arkiwiConfigFile "arav_up_api/config/arkiwi.ini"
+
+RewriteEngine on
+
+RewriteRule ^(path|path64|item|item64)/([^\r\n]+)/(upload|mkdir|delete|edit)/?$ /arav_up_client/html/$3.html?method=$1&value=$2 [NC,L,QSA]

+ 22 - 0
arav_up.php

@@ -0,0 +1,22 @@
+<?php
+
+ini_set('display_errors',1); 
+error_reporting(E_ALL);
+
+// includes
+$includePath = array();
+$includePath[] = './arav_up_inclu';
+$includePath[] = get_include_path();
+$includePath = implode(PATH_SEPARATOR,$includePath);
+set_include_path($includePath);
+
+// carica configurazione
+require 'arav_up_confs.php';
+
+// lib di auth
+require 'auth.php';
+
+// presenta auth
+prompt_auth();
+
+?>

+ 55 - 0
arav_up_confs.php

@@ -0,0 +1,55 @@
+<?php
+
+$GLOBALS["conf"]["executables"] = array("ogginfo" => "/usr/bin/ogginfo",
+					"mkvinfo" => "/usr/bin/mkvinfo",
+					"ffmpegthumbnailer" => "/usr/local/bin/ffmpegthumbnailer",
+					"oggthumb" => "/usr/local/bin/oggThumb",
+					"mktorrent" => "/usr/bin/mktorrent",
+					"qrencode" => "/usr/bin/qrencode",
+					"vorbiscomment" => "/usr/bin/vorbiscomment"
+					);
+
+
+// http://www.w3.org/1999/02/22-rdf-syntax-ns# o http://www.w3.org/2000/xmlns/
+$GLOBALS["conf"]["namespaces"] = array("rdf" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						      "qualifiedName" => "xmlns:rdf",
+						      "value" => "http://www.w3.org/1999/02/22-rdf-syntax-ns#"),
+				       "arav" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						       "qualifiedName" => "xmlns:arav",
+						       "value" => "http://wiki.indivia.net/wikka.php?wakka=ArAv"),
+				       "uimd" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						       "qualifiedName" => "xmlns:uimd",
+						       "value" => "http://wiki.indivia.net/wikka.php?wakka=UiMd"),
+				       "dc" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						     "qualifiedName" => "xmlns:dc",
+						     "value" => "http://purl.org/dc/elements/1.1/"),
+				       "rss" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						      "qualifiedName" => "xmlns:rss",
+						      "value" => "http://purl.org/rss/1.0/"),
+				       "ctag" => array("namespaceURI" => "http://www.w3.org/2000/xmlns/",
+						       "qualifiedName" => "xmlns:ctag",
+						       "value" => "http://commontag.org/ns#")
+				       );
+
+
+$GLOBALS["conf"]["supportedexetensions"] = array("ogg","oga","ogv","ogm","webm");
+$GLOBALS["conf"]["DirsNotRegex"] =  "/^arav_|^oembed|^ft_plugins|^tmp$|^\.$/i";
+$GLOBALS["conf"]["FilesRegex"] = "/\.oga$|\.ogv$|\.ogg$|\.webm$|\.mkv$/i";
+
+// campi stabili durante la sessione
+$GLOBALS["conf"]["stablestoredfields"] = array("REMOTE_ADDR", "HTTP_USER_AGENT", "HTTP_HOST");
+// campi che cambiano durante la sessione
+$GLOBALS["conf"]["volatilestoredfields"] = array("REQUEST_TIME");
+
+$GLOBALS["conf"]["xml_version"] = "1.0";
+$GLOBALS["conf"]["xml_encoding"] = "UTF-8";
+
+$GLOBALS["conf"]["report_threshold"] = 0;
+
+$GLOBALS["conf"]["dirmetadatafile"] = "dir.data";
+
+$GLOBALS["conf"]["user_db"] = "/var/www/vhosts/upload.arkiwi.org/htdocs/arav_up_users/arav_users.sqlite3";
+
+$GLOBALS["conf"]["data_basedir"] = "/var/www/vhosts/arav.ventuordici.org/htdocs/"; // dove stanno i doc fisici
+$GLOBALS["conf"]["metadata_basedir"] = "/var/www/vhosts/backend.arkiwi.org/htdocs/"; // dove stanno i metadati derivati
+?>

+ 4 - 0
test.php

@@ -0,0 +1,4 @@
+<?php
+
+include 'arav_up_inclu/auth.php';
+echo is_inside_dir("/var/www/vhosts/arav.ventuordici.org/htdocs/panori/falafelexpress.ogg","/var/www/vhosts/arav.ventuordici.org/htdocs/panori/");