Source for file _link_to_pages.php
Documentation is available at _link_to_pages.php
* @author Simon Georget <simon@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
header('Content-Type: text/html; charset=utf-8');
// rawurlencode() is needed. If not set, generate a JS error in CKEDITOR link plugin
$revert = array('%21'=> '!', '%2A'=> '*', '%27'=> "'", '%28'=> '(', '%29'=> ')');
include_once('../config/define.php');
//////////// Check Droits utilisateur ////////////
include_once('../languages/' . U_L . '/lang_common.' . CHARSET . '.php');
// Caution : use 'rewrite_override' option if you don't want to use MOD_REWRITE syntax
include_once('../news/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['news']['linkvalue'], 'id' => $el['news_id'], 'name' => $el['news_title'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
include_once('../page/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['page']['linkvalue'], 'id' => $el['page_id'], 'name' => $el['page_title'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
include_once('../publication/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['publication']['linkvalue'], 'id' => $el['publi_id'], 'name' => $el['complete_publi_title'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
include_once('../newsletter/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['newsletter']['linkvalue'], 'id' => $el['newsletter_id'], 'name' => $el['newsletter_title'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
include_once('../project/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['project']['linkvalue'], 'id' => $el['project_id'], 'name' => $el['project_name'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
include_once('../workshop/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['workgroup']['linkvalue'], 'id' => $el['workshop_id'], 'name' => $el['workshop_denomination'], 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
// Getting Indicators value
include_once('../dashboard/' . SQL . '.inc.php');
foreach ($data as &$el) {
$link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['dashboard']['linkvalue'], 'id' => $el['sdii_id'], 'name' => $el['sdii_name'], 'parentid' => 1, 'amp_no_conversion'=> true));
$tmp = array($module . $name, SITE_ROOT_URL. 'public/'. $link);
// we finally encode the array into JSON
// foreach ($a as &$el) {
// $string .= '<a href="'.$el[1].'">'.$el[0].'</a>';
<input type='text' id='pageListJSON' value=' <?php echo $string ; ?>'>
|