Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
variable/include path cleanup. added .gitignore. allow config.overide…
….php.
- Loading branch information
Showing
24 changed files
with
244 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
inc/config.override.php | ||
*~ | ||
js_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
<?php | ||
include dirname(__FILE__) . '/../inc/init.php'); | ||
$dir = new fDirectory(WHISPER_DIR); | ||
include '../inc/init.php'; | ||
|
||
$path = str_replace('.', '/' ,fRequest::get('term','string')); | ||
$term = fRequest::get('term','string'); | ||
|
||
//echo "Path is : $path"; | ||
$directories = $dir->scanRecursive($path. '*'); | ||
$return_arr = array(); | ||
foreach ($directories as $directory) { | ||
$return_arr[] = array('value' => str_replace('.wsp','',str_replace('/','.',str_replace(WHISPER_DIR,'',$directory->getPath())))); | ||
if ($GLOBALS['PRIMARY_SOURCE'] == 'GANGLIA') { | ||
if ($GLOBALS['GANGLIA_URL'] != '') { | ||
$json = file_get_contents($GLOBALS['GANGLIA_URL'] . '/tattle_autocomplete.php?term=' . $term); | ||
print $json; | ||
} | ||
} else { | ||
$dir = new fDirectory($GLOBALS['WHISPER_DIR']); | ||
$path = str_replace('.', '/' ,fRequest::get('term','string')); | ||
$directories = $dir->scanRecursive($path. '*'); | ||
$return_arr = array(); | ||
foreach ($directories as $directory) { | ||
$return_arr[] = array('value' => str_replace('.wsp','',str_replace('/','.',str_replace($GLOBALS['WHISPER_DIR'],'',$directory->getPath())))); | ||
} | ||
print json_encode($return_arr); | ||
} | ||
|
||
/* Toss back results as json encoded array. */ | ||
echo json_encode($return_arr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.