コード例 #1
0
ファイル: wiki_config.php プロジェクト: a2call/commsy
<?php

if (!defined('PmWiki')) {
    exit;
}
include_once 'commsy_config.php';
if (!empty($COMMSY_WIKI_TITLE)) {
    $WikiTitle = $COMMSY_WIKI_TITLE;
} else {
    $WikiTitle = 'CommSyWiki';
}
if (!empty($COMMSY_SKIN)) {
    $Skin = $COMMSY_SKIN;
}
if (!empty($COMMSY_LANGUAGE)) {
    XLPage($COMMSY_LANGUAGE, 'PmWikiDe.XLPage');
}
#***********************************
#******FOXFORUM Einstellungen*******
#***********************************
$EnableRelativePageVars = 1;
# needed for creating other Forum groups, modify as needed
# needed for adding new page store with ready wiki pages in cookbook/fox/templates.d/
include_once "{$FarmD}/cookbook/fox/foxtemplates.php";
# main form processor added here so other Forum groups can be created
# from FoxTemplates/CreateNewForum page
include_once "{$FarmD}/cookbook/fox/fox.php";
# add delete links // uncomment next line if foxdelete is used outside Forum group, i.e other Fox forms //
include_once "{$FarmD}/cookbook/fox/foxdelete.php";
# add edit links // uncomment next line if foxedit is used outside Forum group, i.e other Fox forms //
include_once "{$FarmD}/cookbook/fox/foxedit.php";
コード例 #2
0
ファイル: skin.php プロジェクト: pmskin/Skidoo
global $action;
include_once "{$SkinDir}/cookbook/detect_mobile.php";
if ($action == 'print' || detect_mobile_device()) {
    # Enabled from config.php with: $ActionSkin['print'] = <skin_name>;
    global $SkinStyle, $LinkPageExistsFmt, $UrlLinkTextFmt;
    $SkinStyle = 'pda';
    $LinkPageExistsFmt = "<a class='wikilink' href='\$PageUrl?action=print'>\$LinkText</a>";
    $UrlLinkTextFmt = "<cite class='urllink'>\$LinkText</cite> [<a class='urllink' href='\$Url'>\$Url</a>]";
    LoadPageTemplate($pagename, "{$SkinDir}/print/print.tmpl");
    return;
}
## Search a Group.Templates page as well as the Site templates
global $FPLTemplatePageFmt;
SDV($FPLTemplatePageFmt, array('{$FullName}', "Site.Skidoo-LocalTemplates", "Site.LocalTemplates", "Site.PageListTemplates"));
## Use internationalization template for alternative Section Edit text
XLPage('en', "Site.Skidoo-XLPageLocal");
# Condition used in Header to determine whether to display "menu" in the header.
global $Conditions;
$Conditions['skinstyle'] = "\$GLOBALS['SkinStyle']==\$condparm";
## Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript.
global $LeftColumn, $RightColumn;
$FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']";
$FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']";
# ----------------------------------------
# - Standard Skin Setup
# ----------------------------------------
$FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]';
# Define a link stye for new page links
global $LinkPageCreateFmt;
SDV($LinkPageCreateFmt, "<a class='createlinktext' href='\$PageUrl?action=edit'>\$LinkText</a>");
# Default color scheme
コード例 #3
0
ファイル: prefs.php プロジェクト: libcrack/pmwiki
    by the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.  See pmwiki.php for full details.

    This script handles per-browser preferences.  Preference settings
    are stored in wiki pages as XLPage translations, and a cookie on
    the browser tells PmWiki where to find the browser's preferred
    settings.

    This script looks for a ?setprefs= request parameter (e.g., in
    a url); when it finds one it sets a 'setprefs' cookie on the browser 
    identifying the page to be used to load browser preferences,
    and loads the associated preferences.

    If there is no ?setprefs= request, then the script uses the
    'setprefs' cookie from the browser to load the preference settings.
*/
SDV($PrefsCookie, $CookiePrefix . 'setprefs');
SDV($PrefsCookieExpires, $Now + 60 * 60 * 24 * 365);
$LogoutCookies[] = $PrefsCookie;
$sp = '';
if (@$_COOKIE[$PrefsCookie]) {
    $sp = $_COOKIE[$PrefsCookie];
}
if (isset($_GET['setprefs'])) {
    $sp = $_GET['setprefs'];
    setcookie($PrefsCookie, $sp, $PrefsCookieExpires, '/');
}
if ($sp && PageExists($sp)) {
    XLPage('prefs', $sp);
}
XLSDV('en', array('ak_view' => '', 'ak_edit' => 'e', 'ak_history' => 'h', 'ak_print' => '', 'ak_recentchanges' => 'c', 'ak_save' => 's', 'ak_saveedit' => 'u', 'ak_savedraft' => 'd', 'ak_preview' => 'p', 'ak_em' => '', 'ak_strong' => ''));
コード例 #4
0
ファイル: prefs.php プロジェクト: BogusCurry/pmwiki
    'setprefs' cookie from the browser to load the preference settings.
    
    Script maintained by Petko YOTOV www.pmwiki.org/petko
*/

SDV($PrefsCookie, $CookiePrefix.'setprefs');
SDV($PrefsCookieExpires, $Now + 60 * 60 * 24 * 365);
$LogoutCookies[] = $PrefsCookie;

$sp = '';
if (@$_COOKIE[$PrefsCookie]) $sp = $_COOKIE[$PrefsCookie];
if (isset($_GET['setprefs'])) {
  $sp = MakePageName($pagename, $_GET['setprefs']);
  setcookie($PrefsCookie, $sp, $PrefsCookieExpires, '/');
}
if ($sp && PageExists($sp)) XLPage('prefs', $sp, true);

if(is_array($XL['prefs'])) {
  foreach($XL['prefs'] as $k=>$v) {
    if(! preg_match('/^(e_rows|e_cols|TimeFmt|Locale|Site\\.EditForm)$|^ak_/', $k))
      unset($XL['prefs'][$k]);
  }
}

XLSDV('en', array(
  'ak_view' => '',
  'ak_edit' => 'e',
  'ak_history' => 'h',
  'ak_attach'  => '',
  'ak_backlinks' => '',
  'ak_logout' => '',
コード例 #5
0
ファイル: prefs.php プロジェクト: drognisep/Simple-Groupware
    by the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.  See pmwiki.php for full details.

    This script handles per-browser preferences.  Preference settings
    are stored in wiki pages as XLPage translations, and a cookie on
    the browser tells PmWiki where to find the browser's preferred
    settings.

    This script looks for a ?setprefs= request parameter (e.g., in
    a url); when it finds one it sets a 'setprefs' cookie on the browser 
    identifying the page to be used to load browser preferences,
    and loads the associated preferences.

    If there is no ?setprefs= request, then the script uses the
    'setprefs' cookie from the browser to load the preference settings.
*/
SDV($PrefsCookie, $CookiePrefix . 'setprefs');
SDV($PrefsCookieExpires, $Now + 60 * 60 * 24 * 365);
$LogoutCookies[] = $PrefsCookie;
$sp = '';
if (@$_COOKIE[$PrefsCookie]) {
    $sp = $_COOKIE[$PrefsCookie];
}
if (isset($_GET['setprefs'])) {
    $sp = $_GET['setprefs'];
    setcookie($PrefsCookie, $sp, $PrefsCookieExpires, '/');
}
if ($sp && PageExists($sp)) {
    XLPage('prefs', $sp, true);
}
XLSDV('en', array('ak_view' => '', 'ak_edit' => 'e', 'ak_history' => 'h', 'ak_attach' => '', 'ak_backlinks' => '', 'ak_logout' => '', 'ak_print' => '', 'ak_recentchanges' => 'c', 'ak_save' => 's', 'ak_saveedit' => 'u', 'ak_savedraft' => 'd', 'ak_preview' => 'p', 'ak_em' => '', 'ak_strong' => ''));
コード例 #6
0
ファイル: config.php プロジェクト: prometheus-ev/promwiki
<?php

if (!defined('PmWiki')) {
    exit;
}
$BaseUrl = 'http://prometheus-bildarchiv.de/wiki';
$FmtPV['$BaseUrl'] = '$GLOBALS["BaseUrl"]';
$ScriptUrl = "{$BaseUrl}";
$PubDirUrl = "{$BaseUrl}/pub";
$EnablePathInfo = 1;
include_once 'scripts/xlpage-utf-8.php';
XLPage('de', 'PmWikiDe.XLPage');
XLPage('de', 'PmWikiDe.XLPageCookbook');
$ConfDir = dirname(__FILE__) . "/conf.d";
include_once "{$ConfDir}/passwords.php";
foreach (glob("{$ConfDir}/[0-9][0-9]_*.php") as $filename) {
    include_once $filename;
}