Browse Source

use explicit include paths

tags/3.2
Zach Prezkuta 7 years ago
parent
commit
e684324032
29 changed files with 44 additions and 44 deletions
  1. +5
    -5
      include/api.php
  2. +1
    -1
      include/conversation.php
  3. +1
    -1
      include/cronhooks.php
  4. +3
    -3
      include/delivery.php
  5. +1
    -1
      include/directory.php
  6. +1
    -1
      include/enotify.php
  7. +1
    -1
      include/expire.php
  8. +1
    -1
      include/follow.php
  9. +1
    -1
      include/gprobe.php
  10. +1
    -1
      include/html2plain.php
  11. +2
    -2
      include/items.php
  12. +3
    -3
      include/notifier.php
  13. +1
    -1
      include/onepoll.php
  14. +1
    -1
      include/poller.php
  15. +3
    -3
      include/queue.php
  16. +2
    -2
      index.php
  17. +2
    -2
      mod/_well_known.php
  18. +1
    -1
      mod/content.php
  19. +1
    -1
      mod/crepair.php
  20. +1
    -1
      mod/dfrn_confirm.php
  21. +2
    -2
      mod/dfrn_request.php
  22. +1
    -1
      mod/editpost.php
  23. +1
    -1
      mod/follow.php
  24. +2
    -2
      mod/install.php
  25. +1
    -1
      mod/profile_photo.php
  26. +1
    -1
      mod/share.php
  27. +1
    -1
      mod/tagrm.php
  28. +1
    -1
      mod/wall_upload.php
  29. +1
    -1
      util/db_update.php

+ 5
- 5
include/api.php View File

@@ -1,9 +1,9 @@
<?php
require_once("bbcode.php");
require_once("datetime.php");
require_once("conversation.php");
require_once("oauth.php");
require_once("html2plain.php");
require_once("include/bbcode.php");
require_once("include/datetime.php");
require_once("include/conversation.php");
require_once("include/oauth.php");
require_once("include/html2plain.php");
/*
* Twitter-Like API
*


+ 1
- 1
include/conversation.php View File

@@ -369,7 +369,7 @@ if(!function_exists('conversation')) {
function conversation(&$a, $items, $mode, $update, $preview = false) {


require_once('bbcode.php');
require_once('include/bbcode.php');

$ssl_state = ((local_user()) ? true : false);



+ 1
- 1
include/cronhooks.php View File

@@ -12,7 +12,7 @@ function cronhooks_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 3
- 3
include/delivery.php View File

@@ -12,13 +12,13 @@ function delivery_run(&$argv, &$argc){

if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
}

require_once("session.php");
require_once("datetime.php");
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');
require_once('include/bbcode.php');
require_once('include/diaspora.php');


+ 1
- 1
include/directory.php View File

@@ -10,7 +10,7 @@ function directory_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 1
- 1
include/enotify.php View File

@@ -310,7 +310,7 @@ function notification($params) {

// send email notification if notification preferences permit

require_once('bbcode.php');
require_once('include/bbcode.php');
if((intval($params['notify_flags']) & intval($params['type'])) || $params['type'] == NOTIFY_SYSTEM) {

logger('notification: sending notification email');


+ 1
- 1
include/expire.php View File

@@ -11,7 +11,7 @@ function expire_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 1
- 1
include/follow.php View File

@@ -218,7 +218,7 @@ function new_contact($uid,$url,$interactive = false) {
group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
}

require_once("Photo.php");
require_once("include/Photo.php");

$photos = import_profile_photo($ret['photo'],$uid,$contact_id);



+ 1
- 1
include/gprobe.php View File

@@ -13,7 +13,7 @@ function gprobe_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 1
- 1
include/html2plain.php View File

@@ -1,5 +1,5 @@
<?php
require_once "html2bbcode.php";
require_once("include/html2bbcode.php");

function breaklines($line, $level, $wraplength = 75)
{


+ 2
- 2
include/items.php View File

@@ -1607,7 +1607,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)

if((is_array($contact)) && ($photo_timestamp) && (strlen($photo_url)) && ($photo_timestamp > $contact['avatar-date'])) {
logger('consume_feed: Updating photo for ' . $contact['name']);
require_once("Photo.php");
require_once("include/Photo.php");
$photo_failure = false;
$have_photo = false;

@@ -2240,7 +2240,7 @@ function local_delivery($importer,$data) {

if(($photo_timestamp) && (strlen($photo_url)) && ($photo_timestamp > $importer['avatar-date'])) {
logger('local_delivery: Updating photo for ' . $importer['name']);
require_once("Photo.php");
require_once("include/Photo.php");
$photo_failure = false;
$have_photo = false;



+ 3
- 3
include/notifier.php View File

@@ -51,13 +51,13 @@ function notifier_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
}

require_once("session.php");
require_once("datetime.php");
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');
require_once('include/bbcode.php');
require_once('include/email.php');


+ 1
- 1
include/onepoll.php View File

@@ -18,7 +18,7 @@ function onepoll_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 1
- 1
include/poller.php View File

@@ -12,7 +12,7 @@ function poller_run(&$argv, &$argc){
if(is_null($db)) {
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


+ 3
- 3
include/queue.php View File

@@ -11,14 +11,14 @@ function queue_run(&$argv, &$argc){
if(is_null($db)){
@include(".htconfig.php");
require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
};


require_once("session.php");
require_once("datetime.php");
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');
require_once('include/bbcode.php');



+ 2
- 2
index.php View File

@@ -41,7 +41,7 @@ load_translation_table($lang);
*
*/

require_once("dba.php");
require_once("include/dba.php");

if(! $install) {
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
@@ -54,7 +54,7 @@ if(! $install) {
load_config('config');
load_config('system');

require_once("session.php");
require_once("include/session.php");
load_hooks();
call_hooks('init_1');
}


+ 2
- 2
mod/_well_known.php View File

@@ -1,5 +1,5 @@
<?php
require_once("hostxrd.php");
require_once("mod/hostxrd.php");
function _well_known_init(&$a){
if ($a->argc > 1) {
@@ -11,4 +11,4 @@ function _well_known_init(&$a){
}
http_status_exit(404);
killme();
}
}

+ 1
- 1
mod/content.php View File

@@ -309,7 +309,7 @@ function content_content(&$a, $update = 0) {
function render_content(&$a, $items, $mode, $update, $preview = false) {


require_once('bbcode.php');
require_once('include/bbcode.php');

$ssl_state = ((local_user()) ? true : false);



+ 1
- 1
mod/crepair.php View File

@@ -76,7 +76,7 @@ function crepair_post(&$a) {

if($photo) {
logger('mod-crepair: updating photo from ' . $photo);
require_once("Photo.php");
require_once("include/Photo.php");

$photos = import_profile_photo($photo,local_user(),$contact['id']);



+ 1
- 1
mod/dfrn_confirm.php View File

@@ -671,7 +671,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
else
$photo = $a->get_baseurl() . '/images/person-175.jpg';
require_once("Photo.php");
require_once("include/Photo.php");

$photos = import_profile_photo($photo,$local_uid,$dfrn_record);



+ 2
- 2
mod/dfrn_request.php View File

@@ -110,7 +110,7 @@ function dfrn_request_post(&$a) {
* Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo
*/

require_once('Scrape.php');
require_once('include/Scrape.php');
$parms = scrape_dfrn($dfrn_url);
@@ -505,7 +505,7 @@ function dfrn_request_post(&$a) {
}

require_once('Scrape.php');
require_once('include/Scrape.php');

$parms = scrape_dfrn(($hcard) ? $hcard : $url);



+ 1
- 1
mod/editpost.php View File

@@ -1,6 +1,6 @@
<?php

require_once('acl_selectors.php');
require_once('include/acl_selectors.php');

function editpost_content(&$a) {



+ 1
- 1
mod/follow.php View File

@@ -1,6 +1,6 @@
<?php

require_once('Scrape.php');
require_once('include/Scrape.php');
require_once('include/follow.php');

function follow_init(&$a) {


+ 2
- 2
mod/install.php View File

@@ -32,7 +32,7 @@ function install_post(&$a) {
$dbdata = notags(trim($_POST['dbdata']));
$phpath = notags(trim($_POST['phpath']));

require_once("dba.php");
require_once("include/dba.php");
unset($db);
$db = new dba($dbhost, $dbuser, $dbpass, $dbdata, true);
/*if(get_db_errno()) {
@@ -251,7 +251,7 @@ function install_content(&$a) {
return $o;
}; break;
case 3: { // Site settings
require_once('datetime.php');
require_once('include/datetime.php');
$dbhost = ((x($_POST,'dbhost')) ? notags(trim($_POST['dbhost'])) : 'localhost');
$dbuser = notags(trim($_POST['dbuser']));
$dbpass = notags(trim($_POST['dbpass']));


+ 1
- 1
mod/profile_photo.php View File

@@ -1,6 +1,6 @@
<?php

require_once("Photo.php");
require_once("include/Photo.php");

function profile_photo_init(&$a) {



+ 1
- 1
mod/share.php View File

@@ -1,6 +1,6 @@
<?php

require_once('bbcode.php');
require_once('include/bbcode.php');

function share_init(&$a) {



+ 1
- 1
mod/tagrm.php View File

@@ -1,6 +1,6 @@
<?php

require_once('bbcode.php');
require_once('include/bbcode.php');

function tagrm_post(&$a) {



+ 1
- 1
mod/wall_upload.php View File

@@ -1,6 +1,6 @@
<?php

require_once('Photo.php');
require_once('include/Photo.php');

function wall_upload_post(&$a) {



+ 1
- 1
util/db_update.php View File

@@ -14,7 +14,7 @@ $a = new App;
$lang = get_browser_language();
load_translation_table($lang);

require_once("dba.php");
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, false);
unset($db_host, $db_user, $db_pass, $db_data);



Loading…
Cancel
Save