48 $k = md5(
$q . serialize(
$p ) );
54 if( empty(
$r ) ||
$t ===
false ) {
86 switch( current( explode(
' ',
$q ) ) ) {
120 $q =
$q .
' RETURNING id';
121 $r = @array_shift( @pg_fetch_row( @pg_query(
$c,
$q ) ) );
129 $r = @pg_affected_rows( @pg_query(
$c,
$q ) );
135 if( pg_last_error(
$c ) ) {
138 logWrite(
'errore: ' . pg_last_error(
$c ) .
' ' . mysqli_error(
$c ),
'postgresql', LOG_ERR );
168 while( $row = pg_fetch_assoc(
$r ) ) {
193 if( ! is_array(
$p ) ) {
198 if( current( explode(
' ',
$q ) ) ==
'INSERT' ) {
199 $q =
$q .
' RETURNING id';
203 $key = md5(
$q . serialize(
$p ) );
204 $rows = pg_num_rows( pg_query(
$c,
"SELECT * FROM pg_prepared_statements WHERE name = '$key'" ) );
206 $pq = pg_prepare(
$c, $key,
$q );
212 if(
$pq !==
false ) {
215 switch( current( explode(
' ',
$q ) ) ) {
222 $r = @array_shift( @pg_fetch_row( @pg_execute(
$c, $key,
$p ) ) );
230 $r = pg_affected_rows( pg_execute(
$c, $key,
$p ) );
236 if( pg_last_error(
$c ) ) {
239 logWrite(
'errore: ' . pg_last_error(
$c ),
'postgresql' , LOG_ERR );
279 if( is_array(
$r ) && count(
$r ) > 0 ) {
280 $v = array_shift(
$r );
302 if( is_array(
$r ) && count(
$r ) > 0 ) {
303 $v = array_shift(
$r );
325 if( is_array(
$r ) && count(
$r ) > 0 ) {
326 $v = array_shift(
$r );
348 if( is_array(
$r ) && count(
$r ) > 0 ) {
349 $v = array_shift(
$r );
postgresqlSelectCachedValue( $m, $c, $q, $p=false, &$e=array())
postgresqlSelectRow( $c, $q, $p=false, &$e=array())
logWrite( $m, $f='site', $l=LOG_NOTICE, $d=DIRECTORY_LOG, $t=CURRENT_LOG_LEVEL, $s=SITE_STATUS)
scrive un messaggio nei log del sito
postgresqlSelectCachedRow( $m, $c, $q, $p=false, &$e=array())
postgresqlFetchResult( $r)
postgresqlQuery( $c, $q, $p=false, &$e=array())
postgresqlSelectValue( $c, $q, $p=false, &$e=array())
postgresqlCachedQuery( $m, $c, $q, $p=false, $t=MEMCACHE_DEFAULT_TTL, &$e=array())
postgresqlPreparedQuery( $c, $q, $p=array(), &$e=array())
const MEMCACHE_DEFAULT_TTL
if(! isset( $_REQUEST['__view__'][ $ct['view']['id']]['__extra__']['assegnato'])|| $_REQUEST['__view__'][ $ct['view']['id']]['__extra__']['assegnato']=='__me__') elseif($_REQUEST[ '__view__'][$ct[ 'view'][ 'id']][ '__extra__'][ 'assegnato']=='__nessuno__')