---- dokuwiki-rc2010-10-07/inc/parserutils.php~ 2010-10-07 21:21:37.000000000 +0300
-+++ dokuwiki-rc2010-10-07/inc/parserutils.php 2010-10-07 21:24:30.142987536 +0300
-@@ -634,14 +634,14 @@
+--- dokuwiki-2012-07-08/./inc/parserutils.php~ 2012-07-07 13:06:48.000000000 +0300
++++ dokuwiki-2012-07-08/./inc/parserutils.php 2012-07-08 11:20:06.395684716 +0300
+@@ -748,14 +748,14 @@
$cache = getCacheName($language.$code,".code");
$ctime = @filemtime($cache);
- if($ctime && !$_REQUEST['purge'] &&
+ if($ctime && !$INPUT->bool('purge') &&
- $ctime > filemtime(DOKU_INC.'inc/geshi.php') && // geshi changed
- $ctime > @filemtime(DOKU_INC.'inc/geshi/'.$language.'.php') && // language syntax definition changed
+ $ctime > filemtime('/usr/share/php/geshi.php') && // geshi changed
$conf['securecookie'] = 1; //never send HTTPS cookies via HTTP
/* Advanced Options */
---- dokuwiki-rc2010-10-07/inc/auth.php~ 2010-10-07 21:25:10.000000000 +0300
-+++ dokuwiki-rc2010-10-07/inc/auth.php 2010-10-07 21:26:19.795893378 +0300
-@@ -77,7 +77,7 @@
+--- dokuwiki-2012-07-08/inc/auth.php~ 2012-07-07 13:06:48.000000000 +0300
++++ dokuwiki-2012-07-08/inc/auth.php 2012-07-08 11:21:54.220213692 +0300
+@@ -84,7 +84,7 @@
}
// if no credentials were given try to use HTTP auth (for SSO)
-- if(empty($_REQUEST['u']) && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])){
-+ if($conf['http_auth'] && empty($_REQUEST['u']) && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])){
- $_REQUEST['u'] = $_SERVER['PHP_AUTH_USER'];
- $_REQUEST['p'] = $_SERVER['PHP_AUTH_PW'];
- $_REQUEST['http_credentials'] = true;
+- if(!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])) {
++ if($conf['http_auth'] && !$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])) {
+ $INPUT->set('u', $_SERVER['PHP_AUTH_USER']);
+ $INPUT->set('p', $_SERVER['PHP_AUTH_PW']);
+ $INPUT->set('http_credentials', true);
---- dokuwiki-rc2010-10-07/inc/common.php~ 2010-10-07 21:27:15.000000000 +0300
-+++ dokuwiki-rc2010-10-07/inc/common.php 2010-10-07 21:28:01.732549375 +0300
-@@ -1073,6 +1073,7 @@
- // decide if there is something to do
- if($who == 'admin'){
- if(empty($conf['notify'])) return; //notify enabled?
+--- dokuwiki-2012-07-08/inc/common.php~ 2012-07-07 13:06:48.000000000 +0300
++++ dokuwiki-2012-07-08/inc/common.php 2012-07-08 11:23:14.913603122 +0300
+@@ -1110,6 +1110,7 @@
+ // decide if there is something to do, eg. whom to mail
+ if($who == 'admin') {
+ if(empty($conf['notify'])) return false; //notify enabled?
+ if($conf['useacl'] && $_SERVER['REMOTE_USER'] && $minor) return; //skip minors
$text = rawLocale('mailtext');
$to = $conf['notify'];
---- dokuwiki-rc2010-10-07/inc/common.php~ 2010-10-07 21:31:18.000000000 +0300
-+++ dokuwiki-rc2010-10-07/inc/common.php 2010-10-07 21:33:06.502518916 +0300
+--- dokuwiki-2012-07-08/inc/common.php~ 2012-07-08 11:24:16.000000000 +0300
++++ dokuwiki-2012-07-08/inc/common.php 2012-07-08 11:25:44.509886848 +0300
@@ -902,6 +902,34 @@
return $date;
}
/**
* Sends a notify mail on page change
*
-@@ -1100,10 +1100,10 @@
+@@ -1137,10 +1137,10 @@
- // decide if there is something to do
- if($who == 'admin'){
-- if(empty($conf['notify'])) return; //notify enabled?
+ // decide if there is something to do, eg. whom to mail
+ if($who == 'admin') {
+- if(empty($conf['notify'])) return false; //notify enabled?
if($conf['useacl'] && $_SERVER['REMOTE_USER'] && $minor) return; //skip minors
+ $to = notifyNS($id, $conf['notify']);
+ if(empty($to)) return; //notify enabled?
$text = rawLocale('mailtext');
- $to = $conf['notify'];
$bcc = '';
- }elseif($who == 'subscribers'){
- if(!$conf['subscribers']) return; //subscribers enabled?
-@@ -1116,9 +1116,9 @@
+ } elseif($who == 'subscribers') {
+ if(!$conf['subscribers']) return false; //subscribers enabled?
+@@ -1155,9 +1155,9 @@
$to = '';
$text = rawLocale('subscr_single');
- }elseif($who == 'register'){
-- if(empty($conf['registernotify'])) return;
+ } elseif($who == 'register') {
+- if(empty($conf['registernotify'])) return false;
+ $to = notifyNS($id, $conf['registernotify']);
+ if(empty($to)) return;
$text = rawLocale('registermail');
- $to = $conf['registernotify'];
$bcc = '';
- }else{
- return; //just to be safe
+ } else {
+ return false; //just to be safe
-%define subver 2012-06-24
+%define subver 2012-07-08
%define ver %(echo %{subver} | tr -d -)
%define snap 1
%define php_min_version 5.2.4
Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP
Name: dokuwiki
Version: %{ver}
-Release: 1.11
+Release: 0.12
License: GPL v2
Group: Applications/WWW
#Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-%{subver}.tgz
Source0: http://github.com/splitbrain/dokuwiki/tarball/master/%{name}.tgz
-# Source0-md5: 32e73e37068f66392be004374d885af9
+# Source0-md5: d7afe9a8a4a73637d4620017f16f4b6a
Source1: %{name}-apache.conf
Source2: %{name}-lighttpd.conf
Source3: http://glen.alkohol.ee/pld/jude.png