Skip to content

Commit

Permalink
Incorporating JHR's fixes for #575, #576, #577, #578, #579
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Smith committed Sep 6, 2009
1 parent 9656183 commit 40159ad
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
6 changes: 5 additions & 1 deletion addons/tree/maketree.inc.php
Expand Up @@ -218,6 +218,10 @@ function makeRadio($direction,$type,$checked) {
} }
$showSomedays=!$showingall && $items[$idlist[0]]['isSomeday']==='y'; $showSomedays=!$showingall && $items[$idlist[0]]['isSomeday']==='y';


$referrer = ( preg_match("/[^\/]+$/", $_SERVER['REQUEST_URI'] ,$matches ) ) ?
("&referrer=".urlencode($matches[0])) : "";


/* --------------------------------------------------------------------------- /* ---------------------------------------------------------------------------
finished processing - now produce the HTML finished processing - now produce the HTML
*/ */
Expand Down Expand Up @@ -370,7 +374,7 @@ function makeRadio($direction,$type,$checked) {


<div id='treepopup' class='hidden'> <div id='treepopup' class='hidden'>
<a href='itemReport.php?itemId=0'>View</a> <a href='itemReport.php?itemId=0'>View</a>
<a href='item.php?itemId=0'>Edit</a> <a href='item.php?itemId=0<?php echo $referrer;?>'>Edit</a>
<a href='#' onclick='return GTD.tree.prune()'>Prune</a> <a href='#' onclick='return GTD.tree.prune()'>Prune</a>
</div> </div>


Expand Down
3 changes: 2 additions & 1 deletion backup.php
Expand Up @@ -17,7 +17,8 @@


// output the database backup // output the database backup
header("Content-type: text/plain; $charset"); header("Content-type: text/plain; $charset");
header('Content-Disposition: attachment; filename="gtdphpBackup.sql"'); header('Content-Disposition: attachment; filename="gtdphpBackup'
.date("Y-m-d").'.sql"');
echo backupData($_SESSION['prefix']); echo backupData($_SESSION['prefix']);




Expand Down
2 changes: 1 addition & 1 deletion gtd_constants.inc.php
@@ -1,5 +1,5 @@
<?php <?php
define('_GTD_REVISION',609); define('_GTD_REVISION',610);
define('_GTD_VERSION','0.8z.09'); // DATABASE version define('_GTD_VERSION','0.8z.09'); // DATABASE version
define('_GTDPHP_VERSION','0.9beta'); // gtd-php version, as per the TRAC system define('_GTDPHP_VERSION','0.9beta'); // gtd-php version, as per the TRAC system


Expand Down
7 changes: 3 additions & 4 deletions gtdfuncs.inc.php
Expand Up @@ -676,19 +676,18 @@ function checkUTF8() { // check php ini values are ok for utf-8


if (stristr(ini_get('mbstring.http_input' ),'UTF-8')===false) { if (stristr(ini_get('mbstring.http_input' ),'UTF-8')===false) {
$_SESSION['message'][]="Either set mbstring.http_input=UTF-8,ASCII in php.ini; $_SESSION['message'][]="Either set mbstring.http_input=UTF-8,ASCII in php.ini;
or add this line to .htaccess: phpvalue mbstring.http_input UTF-8,ASCII"; or add this line to .htaccess: php_value mbstring.http_input UTF-8,ASCII";
$passed=false; $passed=false;
} }


if (stristr(ini_get('mbstring.detect_order'),'UTF-8')===false) { if (stristr(ini_get('mbstring.detect_order'),'UTF-8')===false) {
$_SESSION['message'][]="Either set mbstring.detect_order=UTF-8,ASCII in php.ini; $_SESSION['message'][]="Either set mbstring.detect_order=UTF-8,ASCII in php.ini;
or add this line to .htaccess: phpvalue mbstring.detect_order UTF-8,ASCII"; or add this line to .htaccess: php_value mbstring.detect_order UTF-8,ASCII";
$passed=false; $passed=false;
} }


if (!(ini_get('mbstring.func_overload') & 6)) { if (!(ini_get('mbstring.func_overload') & 6)) {
$_SESSION['message'][]="Either set mbstring.func_overload=6 in php.ini; $_SESSION['message'][]="Either add this line to .htaccess: php_value mbstring.func_overload 6 (this may not work in php5.2.8 onwards); or set mbstring.func_overload=6 in php.ini";
or add this line to .htaccess: phpvalue mbstring.func_overload 6";
$passed=false; $passed=false;
} }


Expand Down
5 changes: 4 additions & 1 deletion itemReport.php
Expand Up @@ -209,7 +209,10 @@


while ($i < count($maintable)) { while ($i < count($maintable)) {
$row=&$maintable[$i]; $row=&$maintable[$i];
$cleantitle=makeclean($row['title']); $cleantitle=makeclean($row['title']);

$row['doreport']=!($row['type']=="a" || $row['type']==="r" || $row['type']==="w" || $row['type']==="i");



if ($i >= $limit) { if ($i >= $limit) {
if ($_SESSION['useLiveEnhancements']) { if ($_SESSION['useLiveEnhancements']) {
Expand Down
3 changes: 2 additions & 1 deletion license.php
Expand Up @@ -115,7 +115,8 @@
<a href='http://www.gtd-php.com/Developers/NextActionsBooklet'>printable <a href='http://www.gtd-php.com/Developers/NextActionsBooklet'>printable
Next-actions booklet</a></td></tr> Next-actions booklet</a></td></tr>


<tr><td>Sonic, Ismail Onur Filiz, Red, Chris 'Dwarfsoft' Bennett</td><td>Testing and patching</td></tr> <tr><td>John Holland Robinson, Sonic, Ismail Onur Filiz, Red, Chris 'Dwarfsoft' Bennett</td>
<td>Testing and patching</td></tr>


<tr><td><b>You!</b></td> <tr><td><b>You!</b></td>
<td>For the invaluable feedback on our <a href='http://toae.org/boards/index.php'>forum</a> <td>For the invaluable feedback on our <a href='http://toae.org/boards/index.php'>forum</a>
Expand Down
13 changes: 6 additions & 7 deletions mysql.inc.php
Expand Up @@ -789,13 +789,12 @@ function getsql($querylabel,$values,$sort) {
break; break;


case "updateconfig": case "updateconfig":
$sql="REPLACE INTO `{$prefix}preferences` (`uid`,`option`,`value`) // config, keys, hierarchy, debug, sort, addons;
VALUES ('{$values['uid']}','config' ,'{$values['config']}' ), $sql="REPLACE INTO `{$prefix}preferences` (`uid`,`option`,`value`) VALUES\n";
('{$values['uid']}','keys' ,'{$values['keys']}' ), foreach ($values as $key=>$val)
('{$values['uid']}','hierarchy','{$values['hierarchy']}'), if ($key !== "uid" && preg_match('/^[a-zA-Z0-9]+$/',$key))
('{$values['uid']}','debug' ,'{$values['debug']}' ), $sql.= "('{$values['uid']}','{$key}','{$val}'),\n";
('{$values['uid']}','sort' ,'{$values['sort']}' ), $sql=rtrim($sql,",\n");
('{$values['uid']}','addons' ,'{$values['addons']}' )";
break; break;


case "updatedeadline": case "updatedeadline":
Expand Down
1 change: 1 addition & 0 deletions themes/default/style.css
Expand Up @@ -274,6 +274,7 @@ input[type='submit']:disabled, button:disabled,select:disabled {
border: solid green 2px; border: solid green 2px;
font-weight:bold; font-weight:bold;
padding:2px; padding:2px;
margin-bottom:4px;
background-color:#CFC; background-color:#CFC;
} }


Expand Down

0 comments on commit 40159ad

Please sign in to comment.