내부 전역 변수값 처리를 위해 함수 정리

conf.php에 getServPrefix 추가. 이후 같은 db에서 다른 서버를 운용할때 사용 가능할 것으로 예상.

$_SESSION 값을 직접 받아서 처리하지 않도록 하기위한 용도로 getUserID(), getGeneralID(), getGeneralName() 을 설정

$_SESSION['p_id']를 p_no로 착각하여 구현한 부분 수정

int|null 변환을 위한 toInt 함수 추가

func_string.php에서 null이 입력될 경우 일부 처리

각 서버에 계정이 생성되었는지 확인하는 isSigned()함수 추가
This commit is contained in:
2018-02-03 03:36:34 +09:00
parent 0bd51726c3
commit e536e2d4ca
15 changed files with 215 additions and 154 deletions
-55
View File
@@ -1,56 +1 @@
<?php
/*
switch(rand()%10) {
case 0: //
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=auction&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 1: // 11
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=11st&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 2: // ѱм
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=paper&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 3: // ׷
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=groupon&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 4: // Ϸ
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=unilook&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 5: //
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=makeprice&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 6: // ǷƮ
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=hreport&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 7: // dz
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=ypbooks&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
case 8: // G
?>
<a onmouseover="window.status='http://promotion.gmarket.co.kr/planview/plan.asp?sid=30140';return true" onmouseout="window.status=' ';return true" target="_blank" href="http://click.linkprice.com/click.php?m=gmarket&a=A100457867&l=1492&u_id=<?=$banner_id;?>"><img src="http://image.gmarket.co.kr/UPLOAD_IMAGE/2011/12/27/160_600_1227.gif" border="0" alt="G" width="160" height="600"></a>
<img src="http://track.linkprice.com/lpshow.php?m_id=gmarket&a_id=A100457867&p_id=0000&l_id=1492&l_cd1=2&l_cd2=0" width="1" height="1" border="0" nosave style="display:none">
<?php
break;
case 9: // 11
?>
<iframe src="http://ad.linkprice.com/stlink.php?m=m365&a=A100457867&width=160&height=600&target=_blank&u_id=<?=$banner_id;?>" width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<?php
break;
}
*/