From: | アムス <ams(at)asiams(dot)com> |
---|---|
To: | "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | php3 compatibility? |
Date: | 2002-11-14 20:31:31 |
Message-ID: | 001701c28c1c$d22c80a0$d4a6fea9@LocalHost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
My current PHP is version 4.22. However, the program I installed was
developed to use PHP 3.0.15 with extention to php3.
Now the problem I found was that somehow include statement is not really
working.
Here I include the code for menu.php3. This calls to include for admchk.func
and gw.conf file. However, they seem not to be included within menu.php3.
menu.php3 ------------------------------------------------------
<?
include("gw.conf");
include("include/admchk.func");
$conn = @pg_Connect($host,"5432","","",$masterdb);
if (!$conn) {
echo "<B>・ヌ。シ・ソ・ル。シ・ケタワツウ、ヒシコヌヤ、キ、゛、キ、ソ。」</B><BR>\n";
exit;
}
?>
<HTML>
<?//include("include/body.conf")?>
<BODY BACKGROUND="images/<?echo $menubg?>" MARGINHEIGHT="0" MARGINWIDTH="0"
TOPMARGIN="0" LEFTMARGIN="0">
<TABLE BORDER=0 CELLPADDING=3 width=60>
<TR>
<TD COLSPAN=3 ALIGN=center><A HREF="index.php3" target="Main"><IMG
SRC="images/btn_top.gif" BORDER=0 ALT="TOP"></A></TD>
</TR>
<?
$sqlstr = "select * from appconf where use = 't' and cngok = 'f' order by
sort_order;" ;
$Menu = @pg_exec($conn,$sqlstr);
$Endd = @pg_numrows($Menu);
$i = 0;
while ($i < $Endd){
if ($i%3 == 0) {
echo "<TR>";
}
echo "<TD><A HREF=\"" . @pg_result($Menu, $i , "link") . "\"
target=\"Main\">";
echo "<IMG SRC=\"images/";
echo ereg_replace(".gif","_s.gif",pg_result($Menu,$i,"gazou"));
echo "\" alt=\""(dot)(at)pg_result($Menu,$i,"name")."\" border=0></A></TD>\n";
$i++;
if ($i%3 == 0) {
echo "</TR>";
}
}
if ($i%3 != 0) {
echo "</TR>";
}
$admin = admchk($conn,$PHP_AUTH_USER);
if ($admin > 0){
$sqlstr = "select * from appconf where use = 't' and cngok = 't' order by
gwap;";
$Menu = @pg_exec($conn,$sqlstr);
$Endd = @pg_numrows($Menu);
$x = 0;
while ($x < $Endd){
if ($x%3 == 0) {
echo "<TR>";
}
echo "<TD><A HREF=\"" . @pg_result($Menu,$x,"link") . "\"
target=\"Main\">";
echo "<IMG SRC=\"images/";
echo ereg_replace(".gif","_s.gif",pg_result($Menu,$x,"gazou"));
echo "\" alt=\"";
echo @pg_result($Menu,$x,"name")."\" border=0></A>\n</TD>";
$x++;
$i++;
if ($x%3 == 0) {
echo "</TR>";
}
}
if ($x%3 != 0) {
echo "</TR>";
}
}
?>
<?
@pg_FreeResult($result);
@pg_Close($conn);
?>
</TABLE>
</CENTER>
<?
/******* テ囚此屮離好轡▲漫▲院廛ハム、ケ、・・遉ヌ、箍ハイシ、ホ」アケヤ、マコ・・キ、ハ、、、ヌ、ッ、タ、
オ、、。」*******
include ("include/copyright.conf")
************* "Copyright" Don't Remove!! ******************************/
?>
</BODY>
</HTML>
--------------------------------------------------- End of
menu.php3---------------
--------------------- Begining of
admchk.func --------------------------------------
<?
/************************************
admchk : エノヘシヤク。ココ
ー癇膠ぢタワツウID
。。。。。ァarg2 = シメー淵茱
胚釿闔粱竏襾め鱧卯め鱧鴬
齣踈單姪痴阨銓┴∋
齣踈厦痲迚鉗齡鱇鴦齣踈氾凖逅焜Г癇膕Щ∋
鱚齦踉韃煥礙め鱧卯ん骭齡鬧─を纉
鱚鴈
續扇艤鱚齦踉┐鱚齦踉竢槇
疹
鈔痲辜蓚
繚蜴鉗鈑范闔漆
よ闢閭瘡蓖齡∋
ろ癈鰾癈鴦∋
め粱蜴鼡閨鰾専閭瘡蓖齡∋
ろ癢肅跂皷牡恩鍵飴
も芍轣艱矚站燉蜀∋
も苳痰跂f聿聿罌ろ緕≒痺諧鬯芍罌黼蜊閼¶纉∋
め蓍迴粤鵞繻鈿胱鵞ゃ葹黼鬲跫竅豁砠遲鼡葹∋
ろ鼇闔⇔錢疹
緕閹
范闔
恟蜩鈿竢逅癆蛯跂矼黼蜴釆堪臆
膚鍖阯瘤葹鈑纉竢粤瘠竢逅癆蛯跂佝亟何
瘤鴒蜴糜瘤竇
曹鱇葹悶鼠
From | Date | Subject | |
---|---|---|---|
Next Message | Henrik Steffen | 2002-11-14 20:36:33 | Re: [PERFORM] Upgrade to dual processor machine? |
Previous Message | Tom Lane | 2002-11-14 20:19:52 | Re: [PERFORM] Upgrade to dual processor machine? |