img', "/\\bAttach:([^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars])/e", "Keep(MakeLink(\$pagename,'$0','$1'),'L')"); # This is for the calendar addin include_once('cookbook/pmcal.php'); # This allows email addresses include_once('cookbook/emailform.php'); $EMailFormAddresses['Ray']='test'; $EMailFormDefaultSender = 'test'; $Databases['activealumni'] = array( 'driver' => 'mysql', 'hostname' => 'localhost', 'database' => 'gammaray_alumni', 'username' => 'gammaray_gamma', 'password' => 'pwd'); include_once "cookbook/adodb-connect.php"; ADOdbConnect('activealumni'); // if you don't need to change the default settings, you may leave them out // which database settings to use (see Cookbook.DatabaseStandard) $AUDBaseTable['database'] = 'users'; // which table contains the username & password data? $AUDBaseTable['user_table'] = 'active_users'; // which fields in the table contain the following data? $AUDBaseTable['user_field'] = 'username'; $AUDBaseTable['pw_field'] = 'password'; // which password encryption scheme to use // normally "md5" or "sha1". // May also be admin-defined function; use the name of the function, // and define the function in config.php $AUDBaseTable['encrypt_f'] = 'md5'; // these settings are required for stand-alone use only (defaults listed) $AUDBaseTable['standalone'] = true; // set to true for stand-alone use // which field contains the following data? $AUDBaseTable['email'] = 'email'; $AUDBaseTable['validate_code'] = 'validatecode'; $AUDBaseTable['validate_field'] = 'validatefield'; $AUDBaseTable['date_joined'] = 'signupdate'; // not used at the moment - may use ADOdb's internal international error code feature $AUDBaseTable['lang'] = 'en'; include_once("cookbook/AuthUserDbase-2.0.0.php"); include_once('scripts/authuser.php'); # Addin for HTML in pages include_once('cookbook/enablehtml.php'); EnableHtml('form|input|br|table|td|tr|select|option'); ## This causes external links to be created in a new page. $UrlLinkFmt = "\$LinkText"; ## Allows for creating zebra tables $TableRowIndexMax = 2; $TableRowAttrFmt = "class='ind\$TableRowIndex'"; # Automatically protects email addresses include_once('cookbook/e-protect.php'); # limits search results $SearchPatterns['default'][] = '!\\.(All)?Recent(Changes|Uploads)$!'; $SearchPatterns['default'][] = '!\\.Group(Print)?Header$!'; $SearchPatterns['default'][] = '!^Site\\.!'; $SearchPatterns['default'][] = '!^PmWiki\\.!'; $SearchPatterns['default'][] = '!^Web\\.!'; $SearchPatterns['default'][] = '!^Test\\.!'; $SearchPatterns['default'][] = '!^Admin\\.!'; $SearchPatterns['default'][] = '!^Alumni\\.!'; # Adds a guestbook include_once('cookbook/guestbook.php'); # Adds form capability include_once('cookbook/buildforms.php'); # Adds a comment box include_once('cookbook/commentboxstyled.php'); # visit counter $CounterAuthLevel = 'admin'; include_once('cookbook/totalcounter.php'); # Adds URLs to the wiki include_once('cookbook/includeSite.php'); # Adds rss inclusion to the site include_once("cookbook/rssdisplay.php"); # Adds the PayPal Button to the site include_once("cookbook/PayPalButton.php"); # MySQL addin $MyPmWiki_Hostname = 'localhost'; $MyPmWiki_Username = 'gammaray_gamma'; $MyPmWiki_Password = 'pwd'; $MyPmWiki_DBName = 'gammaray_alumni'; $MyPmWiki_TableFmt = 'border="1" cellpadding="6" frame="box" rules="rows" style="border-collapse: collapse; font-family:Verdana; font-size:10pt"'; include_once("cookbook/mypmwiki.php"); # comment database include_once("cookbook/commentdb.php"); $CdbCommentsPerPage = 15; $CdbMySQLHost = "localhost"; $CdbMySQLDb = "gammaray_comments"; $CdbMySQLUser = "gammaray_gamma"; $CdbMySQLPass = "pwd"; # wikid backup utility include_once("cookbook/backup_pages.php"); # adds robot functionality Markup('robots', 'directives', '/\\(:robots\\s+(\\w[\\w\\s,]*):\\)/e', "PZZ(\$GLOBALS['MetaRobots'] = '$1')"); # enable notifications $EnableNotify = 1; $NotifyFrom = 'test'; # $NotifySquelch = 86400; $NotifySubjectFmt = "SHSAA Website Page Changes"; $NotifyItemFmt = " * {\$FullName} . . . \$PostTime by {\$Author} \n Summary: {\$LastModifiedSummary}\n {\$PageUrl}?action=diff"; # Database query add in include_once("cookbook/selectquery.php"); # if (FmtPageName('$Group',$pagename) == 'Administration') { # include 'cookbook/selectquery.php'; # } ## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo ## actions, which often helps the PmWiki authors to troubleshoot ## various configuration and execution problems. # $EnableDiag = 1; # enable remote diagnostics ## By default, PmWiki doesn't allow browsers to cache pages. Setting ## $EnableIMSCaching=1; will re-enable browser caches in a somewhat ## smart manner. Note that you may want to have caching disabled while ## adjusting configuration files or layout templates. # $EnableIMSCaching = 1; # allow browser caching ## Set $SpaceWikiWords if you want WikiWords to automatically ## have spaces before each sequence of capital letters. # $SpaceWikiWords = 1; # turn on WikiWord spacing ## Set $LinkWikiWords if you want to allow WikiWord links. # $LinkWikiWords = 1; # enable WikiWord links ## If you want only the first occurrence of a WikiWord to be converted ## to a link, set $WikiWordCountMax=1. # $WikiWordCountMax = 1; # converts only first WikiWord # $WikiWordCountMax = 0; # another way to disable WikiWords ## The $WikiWordCount array can be used to control the number of times ## a WikiWord is converted to a link. This is useful for disabling ## or limiting specific WikiWords. # $WikiWordCount['PhD'] = 0; # disables 'PhD' # $WikiWordCount['PmWiki'] = 1; # convert only first 'PmWiki' ## By default, PmWiki is configured such that only the first occurrence ## of 'PmWiki' in a page is treated as a WikiWord. If you want to ## restore 'PmWiki' to be treated like other WikiWords, uncomment the ## line below. # unset($WikiWordCount['PmWiki']); ## If you want to disable WikiWords matching a pattern, you can use ## something like the following. Note that the first argument has to ## be different for each call to Markup(). The example below disables ## WikiWord links like COM1, COM2, COM1234, etc. # Markup('COM\d+', '$1"); # '~italic~' # Markup("'*", "inline", "/'\\*(.*?)\\*'/", "$1"); # '*bold*' ## If you want to have to approve links to external sites before they ## are turned into links, uncomment the line below. See PmWiki.UrlApprovals. ## Also, setting $UnapprovedLinkCountMax limits the number of unapproved ## links that are allowed in a page (useful to control wikispam). # include_once('scripts/urlapprove.php'); # $UnapprovedLinkCountMax = 10; ## The following lines make additional editing buttons appear in the ## edit page for subheadings, lists, tables, etc. $GUIButtons['h2'] = array(400, '\\n!! ', '\\n', '$[Heading]', '$GUIButtonDirUrlFmt/h2.gif"$[Heading]"'); $GUIButtons['h3'] = array(402, '\\n!!! ', '\\n', '$[Subheading]', '$GUIButtonDirUrlFmt/h3.gif"$[Subheading]"'); $GUIButtons['indent'] = array(500, '\\n->', '\\n', '$[Indented text]', '$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"'); $GUIButtons['outdent'] = array(510, '\\n-<', '\\n', '$[Hanging indent]', '$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"'); $GUIButtons['ol'] = array(520, '\\n# ', '\\n', '$[Ordered list]', '$GUIButtonDirUrlFmt/ol.gif"$[Ordered (numbered) list]"'); $GUIButtons['ul'] = array(530, '\\n* ', '\\n', '$[Unordered list]', '$GUIButtonDirUrlFmt/ul.gif"$[Unordered (bullet) list]"'); $GUIButtons['hr'] = array(540, '\\n----\\n', '', '', '$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"'); $GUIButtons['table'] = array(600, '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '', '$GUIButtonDirUrlFmt/table.gif"$[Table]"');