php 文件安装教程二

function writeText($f,$c){if(is_writable($f) ||
!file_exists($f)){if(!$h=fopen($f,’w’))return
false;if(!fwrite($h,$c))return false;fclose($h);}else{return
false;}return true;}

function writeText($f,$c){
 if(is_writable($f) || !file_exists($f)){
  if(!$h=fopen($f,’w’))return false;
  if(!fwrite($h,$c))return false;
  fclose($h);
 }else{
  return false;
 }
 return true;
}

php 文件安装教程二

function chksqlv(){
 return version_compare(mysql_get_server_info(), ‘4.1.0’,
‘>=’);
}

function enc_p($c){return md5(md5($c));}

function enc_p($c){
 return md5(md5($c));
}

function getsfoot(){global $app_n;return ‘/div/divdiv id=footcopy;
‘.date(‘Y’).’ ‘.$app_n.’br/a href=_class rel=externalimg
src=../images/powered.gif alt=Powered by
‘.$app_n.’//a/div/div/body/html’;}

$b_file=’config.php’;
$c_file=’../’.$b_file;
$l_file=’setup.lock’;

function SQLString($c,
$t){$c=(!get_magic_quotes_gpc())?addslashes($c):$c;switch($t){case
‘text’:$c=($c!=”)?’.$c.’:’NULL’;break;case
‘search’:$c=’%%.$c.%%’;break;case
‘int’:$c=($c澳门新葡亰手机版,!=”)?intval($c):’0′;break;}return $c;}

function getstop($i=1){
 global $app_n;
 return ‘<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN”

xmlns=”
http-equiv=”Content-Type” content=”text/html; charset=gb2312″
/><title>安装 ‘.$app_n.’ – 第’.$i.’步</title><link
rel=”stylesheet” type=”text/css”
title=”Default” href=”../styles.css”
/></head><body><div id=”body”><div
id=”top”><div
id=”logo”>’.$app_n.'</div></div><div
id=”main”><div class=”tcontent”>’;
}