uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
forum-e-syn
/
FUDforum
/
plugins
/
..
/
sql
/
pgsql
/
seq.php
/
/
<?php /* * Verify FUDforum's sequences and reset them if required. */ $cn = pg_connect('user=pgsql dbname=pgsql'); $r = pg_query($cn, 'select relname from pg_class WHERE relkind=\'r\''); while ( $obj = pg_fetch_object($r) ) { if ( substr($obj->relname, 0, 4) == 'fud_' ) { $qry = 'SELECT max(id) AS maxid FROM '. $obj->relname; if ( !($r2 = @pg_query($qry)) ) { continue; } $obj2 = pg_fetch_object($r2); if ( !$obj2->maxid ) continue; echo 'Set sequence '. $obj->relname .'_id_seq to '. $obj2->maxid ."\n"; $qry = 'SELECT setval(\''. $obj->relname .'_id_seq\', '. $obj2->maxid .')'; if ( !pg_query($qry) ) { exit('Cannot set ( -- '. $qry ." -- )\n"); } } } pg_free_result($r); ?>
/var/www/forum-e-syn/FUDforum/plugins/../sql/pgsql/seq.php