Viewing file: c2.php (1.64 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php //ob_start("ob_gzhandler"); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style media="screen, projection"> @import "http://bits.wikimedia.org/skins-1.5/monobook/main.css"; </style> <body> <script type="text/javascript" src="jquery.js"></script> <script> function acceptresolution(id,encoding) { $("#"+id).html("processing...<hr>"); $.post("c2_accept.php", {id: id, encoding: encoding}, function(output) { $("#"+id).html(output) }); } function markresolution(id,encoding) { $("#"+id).html("processing...<hr>"); $.post("c2_mark.php", {id: id, encoding: encoding}, function(output) { $("#"+id).html(output) }); } function undo(id) { $.post("c2_undo.php", {id: id}, function(output) { $("#"+id).html(output) }); } function hideresolution(id,encoding) { $("#"+id+" #"+encoding).hide(); } </script> <?php
require_once('encodingroutines.php');
$conn = pg_connect("dbname=ax_andras_tinkers");
set_time_limit(60);
pg_query("select set_curcfg('default');");
//$pgresult=pg_query("SELECT id,text from msgboard_messages where not text_in_utf8 and not text_original_in_utf8 order by date;"); $pgresult=pg_query("SELECT id,text from msgboard_messages where not text_in_utf8 and not text_marked_for_checkup order by date desc;");
$textcounter=0; $itemcounter=0; while($row=pg_fetch_array($pgresult)) { $textcounter++;
//if (is_ascii($row['text'])) continue; //if (is_utf8($row['text'])) continue;
$itemcounter++;
render_choices($row['id'],$row['text'],$itemcounter,$textcounter);
ob_flush(); } echo "<h1>unresolved items: ".$itemcounter." (of ".count($column).")</h1>"; echo "<hr>"; ob_flush(); #print_r($workitem);
?> </body>
|