Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
Mailer /
adodb /
Delete
Unzip
Name
Size
Permission
Date
Action
contrib
[ DIR ]
drwxr-sr-x
2008-01-09 06:26
cute_icons_for_site
[ DIR ]
drwxr-sr-x
2008-01-09 06:26
datadict
[ DIR ]
drwxr-sr-x
2008-01-09 06:26
docs
[ DIR ]
drwxr-sr-x
2008-01-09 06:26
drivers
[ DIR ]
drwxr-sr-x
2008-01-09 06:26
lang
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
pear
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
perf
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
session
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
tests
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
xsl
[ DIR ]
drwxr-sr-x
2008-01-09 06:27
.Index.txt
1.96
KB
-rw-r--r--
2008-01-09 06:25
adodb-active-record.inc.php
12.17
KB
-rw-r--r--
2008-01-09 06:25
adodb-csvlib.inc.php
8.11
KB
-rw-r--r--
2008-01-09 06:25
adodb-datadict.inc.php
20.55
KB
-rw-r--r--
2008-01-09 06:26
adodb-error.inc.php
8.34
KB
-rw-r--r--
2008-01-09 06:26
adodb-errorhandler.inc.php
2.68
KB
-rw-r--r--
2008-01-09 06:26
adodb-errorpear.inc.php
2.22
KB
-rw-r--r--
2008-01-09 06:26
adodb-exceptions.inc.php
2.16
KB
-rw-r--r--
2008-01-09 06:26
adodb-iterator.inc.php
1.56
KB
-rw-r--r--
2008-01-09 06:26
adodb-lib.inc.php
30.98
KB
-rw-r--r--
2008-01-09 06:26
adodb-pager.inc.php
7.93
KB
-rw-r--r--
2008-01-09 06:26
adodb-pear.inc.php
9.34
KB
-rw-r--r--
2008-01-09 06:26
adodb-perf.inc.php
29.97
KB
-rw-r--r--
2008-01-09 06:26
adodb-php4.inc.php
319
B
-rw-r--r--
2008-01-09 06:26
adodb-time.inc.php
38.44
KB
-rw-r--r--
2008-01-09 06:26
adodb-xmlschema.inc.php
54.04
KB
-rw-r--r--
2008-01-09 06:26
adodb-xmlschema03.inc.php
60.9
KB
-rw-r--r--
2008-01-09 06:26
adodb.inc.php
111.87
KB
-rw-r--r--
2020-01-20 10:27
license.txt
25.29
KB
-rw-r--r--
2008-01-09 06:27
pivottable.inc.php
6.16
KB
-rw-r--r--
2008-01-09 06:27
readme.txt
1.63
KB
-rw-r--r--
2008-01-09 06:27
rsfilter.inc.php
1.48
KB
-rw-r--r--
2008-01-09 06:27
server.php
2.25
KB
-rw-r--r--
2008-01-09 06:27
toexport.inc.php
3.26
KB
-rw-r--r--
2008-01-09 06:27
tohtml.inc.php
5.39
KB
-rw-r--r--
2008-01-09 06:27
xmlschema.dtd
1.42
KB
-rw-r--r--
2008-01-09 06:27
xmlschema03.dtd
1.68
KB
-rw-r--r--
2008-01-09 06:27
Save
Rename
<?php /** * @version V4.80 8 Mar 2006 (c) 2000-2006 John Lim (jlim@natsoft.com.my). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * * Code to export recordsets in several formats: * * AS VARIABLE * $s = rs2csv($rs); # comma-separated values * $s = rs2tab($rs); # tab delimited * * TO A FILE * $f = fopen($path,'w'); * rs2csvfile($rs,$f); * fclose($f); * * TO STDOUT * rs2csvout($rs); */ // returns a recordset as a csv string function rs2csv(&$rs,$addtitles=true) { return _adodb_export($rs,',',',',false,$addtitles); } // writes recordset to csv file function rs2csvfile(&$rs,$fp,$addtitles=true) { _adodb_export($rs,',',',',$fp,$addtitles); } // write recordset as csv string to stdout function rs2csvout(&$rs,$addtitles=true) { $fp = fopen('php://stdout','wb'); _adodb_export($rs,',',',',true,$addtitles); fclose($fp); } function rs2tab(&$rs,$addtitles=true) { return _adodb_export($rs,"\t",',',false,$addtitles); } // to file pointer function rs2tabfile(&$rs,$fp,$addtitles=true) { _adodb_export($rs,"\t",',',$fp,$addtitles); } // to stdout function rs2tabout(&$rs,$addtitles=true) { $fp = fopen('php://stdout','wb'); _adodb_export($rs,"\t",' ',true,$addtitles); if ($fp) fclose($fp); } function _adodb_export(&$rs,$sep,$sepreplace,$fp=false,$addtitles=true,$quote = '"',$escquote = '"',$replaceNewLine = ' ') { if (!$rs) return ''; //---------- // CONSTANTS $NEWLINE = "\r\n"; $BUFLINES = 100; $escquotequote = $escquote.$quote; $s = ''; if ($addtitles) { $fieldTypes = $rs->FieldTypesArray(); reset($fieldTypes); while(list(,$o) = each($fieldTypes)) { $v = $o->name; if ($escquote) $v = str_replace($quote,$escquotequote,$v); $v = strip_tags(str_replace("\n", $replaceNewLine, str_replace("\r\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)))); $elements[] = $v; } $s .= implode($sep, $elements).$NEWLINE; } $hasNumIndex = isset($rs->fields[0]); $line = 0; $max = $rs->FieldCount(); while (!$rs->EOF) { $elements = array(); $i = 0; if ($hasNumIndex) { for ($j=0; $j < $max; $j++) { $v = $rs->fields[$j]; if (!is_object($v)) $v = trim($v); else $v = 'Object'; if ($escquote) $v = str_replace($quote,$escquotequote,$v); $v = strip_tags(str_replace("\n", $replaceNewLine, str_replace("\r\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)))); if (strpos($v,$sep) !== false || strpos($v,$quote) !== false) $elements[] = "$quote$v$quote"; else $elements[] = $v; } } else { // ASSOCIATIVE ARRAY foreach($rs->fields as $v) { if ($escquote) $v = str_replace($quote,$escquotequote,trim($v)); $v = strip_tags(str_replace("\n", $replaceNewLine, str_replace("\r\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)))); if (strpos($v,$sep) !== false || strpos($v,$quote) !== false) $elements[] = "$quote$v$quote"; else $elements[] = $v; } } $s .= implode($sep, $elements).$NEWLINE; $rs->MoveNext(); $line += 1; if ($fp && ($line % $BUFLINES) == 0) { if ($fp === true) echo $s; else fwrite($fp,$s); $s = ''; } } if ($fp) { if ($fp === true) echo $s; else fwrite($fp,$s); $s = ''; } return $s; } ?>