[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /* $Id: url.php 21452 2006-04-25 16:19:16Z ralfbecker $ */ 3 4 // Under phpgw these URL's are NOT configurable, you can set the phpgw install-path in setup 5 6 $ScriptBase = $GLOBALS['egw']->link('/wiki/index.php'); 7 $ScriptBase .= strstr($ScriptBase,'?') ? '&' : '?'; 8 9 $AdminScript = $ScriptBase . 'action=admin'; 10 11 //if(!isset($ViewBase)) 12 { $ViewBase = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'wiki.uiwiki.view')). '&page='; } 13 //if(!isset($EditBase)) 14 { $EditBase = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'wiki.uiwiki.edit')).'&page='; } 15 //if(!isset($HistoryBase)) 16 { $HistoryBase = $ScriptBase . 'action=history&page='; } 17 //if(!isset($FindScript)) 18 { $FindScript = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'wiki.uiwiki.search')); } 19 //if(!isset($FindBase)) 20 { $FindBase = $FindScript . '&search='; } 21 //if(!isset($SaveBase)) 22 { $SaveBase = $ScriptBase . 'action=save&page='; } 23 //if(!isset($DiffScript)) 24 { $DiffScript = $ScriptBase . 'action=diff'; } 25 //if(!isset($PrefsScript)) 26 { $PrefsScript = $ScriptBase . 'action=prefs'; } 27 //if(!isset($StyleScript)) 28 { $StyleScript = $ScriptBase . 'action=style'; } 29 30 if(!function_exists('viewURL')) 31 { 32 function viewURL($page, $version = '', $full = '') 33 { 34 global $ViewBase; 35 36 if (is_array($page)) 37 { 38 $lang = @$page['lang'] && $page['lang'] != $GLOBALS['egw_info']['user']['preferences']['common']['lang'] ? '&lang='.$page['lang'] : ''; 39 $page = $page['name']; 40 } 41 elseif (is_object($page)) 42 { 43 $lang = @$page->lang && $page->lang != $GLOBALS['egw_info']['user']['preferences']['common']['lang'] ? '&lang='.$page->lang : ''; 44 $page = $page->name; 45 } 46 return $ViewBase . urlencode($page) . @$lang . 47 ($version == '' ? '' : "&version=$version") . 48 ($full == '' ? '' : '&full=1'); 49 } 50 } 51 52 if(!function_exists('editURL')) 53 { 54 function editURL($page, $version = '') 55 { 56 global $EditBase; 57 58 if (is_array($page)) 59 { 60 $lang = @$page['lang'] && $page['lang'] != $GLOBALS['egw_info']['user']['preferences']['common']['lang'] ? '&lang='.$page['lang'] : ''; 61 $page = $page['name']; 62 } 63 return $EditBase . urlencode($page) . @$lang . 64 ($version == '' ? '' : "&version=$version"); 65 } 66 } 67 68 if(!function_exists('historyURL')) 69 { 70 function historyURL($page, $full = '',$lang='') 71 { 72 global $HistoryBase; 73 74 if ($lang || (is_array($page) && isset($page['lang']))) 75 { 76 $lang = '&lang=' . ($lang ? $lang : $page['lang']); 77 } 78 return $HistoryBase . urlencode(is_array($page) ? $page['name'] : $page) . $lang; 79 ($full == '' ? '' : '&full=1'); 80 } 81 } 82 83 if(!function_exists('findURL')) 84 { 85 function findURL($page,$lang='') 86 { 87 global $FindBase; 88 89 if ($lang || (is_array($page) && isset($page['lang']))) 90 { 91 $lang = '&lang=' . ($lang ? $lang : $page['lang']); 92 } 93 return $FindBase . urlencode(is_array($page) ? $page['name'] : $page) . $lang; 94 } 95 } 96 97 if(!function_exists('saveURL')) 98 { 99 function saveURL($page) 100 { 101 global $SaveBase; 102 103 return $SaveBase . urlencode($page); 104 } 105 } 106 107 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |