This commit is contained in:
pezcurrel 2020-10-21 15:26:31 +02:00
parent 3de0dc5ff4
commit 049c1d839a
5 changed files with 13 additions and 13 deletions

View file

@ -20,7 +20,7 @@ $newlang='CA';
$newlangcode=strtolower($newlang);
$email='pezcurrel@tiscali.it';
require(__DIR__.'/../include/mb_ucfirst.php');
require(__DIR__.'/../site/mustard/include/mb_ucfirst.php');
define('N',"\n");

View file

@ -13,7 +13,7 @@ function mexit($msg,$code) {
if ($argc!=4)
mexit('addsuperadmin.php <username> <email> <password>'.N,1);
$iniarr=@parse_ini_file(__DIR__.'/../../conf/mustard.ini')
$iniarr=@parse_ini_file(__DIR__.'/../conf/mustard.ini')
or mexit('Impossibile aprire il file di configurazione.'.N,1);
$link=mysqli_connect($iniarr['db_host'],$iniarr['db_admin_name'],$iniarr['db_admin_password'],$iniarr['db_name'],$iniarr['db_port'],$iniarr['db_socket'])
or mexit('Impossibile connettersi al database: '.mysqli_connect_error().' ['.mysqli_connect_errno().']'.N,1);

View file

@ -18,9 +18,9 @@
define('N',"\n");
require(__DIR__.'/../include/getfc.php');
require(__DIR__.'/../site/mustard/include/getfc.php');
require(__DIR__.'/../../vendor/autoload.php');
require(__DIR__.'/../site/vendor/autoload.php');
use LanguageDetection\Language;
if (strtoupper(substr(PHP_OS,0,3))==='WIN')
@ -211,7 +211,7 @@ $link=@mysqli_connect($iniarr['db_host'],$iniarr['db_admin_name'],$iniarr['db_ad
mysqli_set_charset($link,'utf8mb4')
or mexit(__LINE__.': '.mysqli_error($link).N,1);
require(__DIR__.'/../include/tables.php');
require(__DIR__.'/../site/mustard/include/tables.php');
$tables=tables($link);
//print_r($tables);
@ -599,7 +599,7 @@ function get_instance_langs($host) {
return $languages;
}
require(__DIR__.'/../include/mb_ucfirst.php');
require(__DIR__.'/../site/mustard/include/mb_ucfirst.php');
function langs($instid, $uri, $auto) {
global $info, $instrow, $link, $opts;
@ -668,9 +668,9 @@ function mdasortbykey(&$arr,$key,$rev=false) {
$arr[$subarr[0]]=$subarr[1];
}
require('../include/ghs.php');
require(__DIR__.'/../site/mustard/include/ghs.php');
require('../include/ght.php');
require(__DIR__.'/../site/mustard/include/ght.php');
/*
* Nodeinfo ('https://'.$dom.'/nodeinfo/2.0.json') è stato aggiunto nella 3.0.0

View file

@ -18,12 +18,12 @@
define('N',"\n");
require(__DIR__.'/../include/getfc.php');
require(__DIR__.'/../site/mustard/include/getfc.php');
setlocale(LC_ALL,getenv('LANG'));
$opts=array(
'inifp'=>__DIR__.'/../conf/mustard.ini,
'inifp'=>__DIR__.'/../conf/mustard.ini',
'startinst'=>'mastodon.social',
'peersfp'=>__DIR__.'/peers',
'allpeersfp'=>__DIR__.'/peers.all',
@ -311,8 +311,8 @@ function ckexarr($inst) {
return(false);
}
require('../include/ghs.php');
require('../include/ght.php');
require(__DIR__.'/../site/mustard/include/ghs.php');
require(__DIR__.'/../site/mustard/include/ght.php');
function validhostname($url) {
$hostname=preg_replace('#/.*#','',$url);

View file

@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require(__DIR__.'/../include/mb_ucfirst.php');
require(__DIR__.'/../site/mustard/include/mb_ucfirst.php');
define('N',"\n");