本文整理汇总了PHP中COMMONFUNC::input_fun方法的典型用法代码示例。如果您正苦于以下问题:PHP COMMONFUNC::input_fun方法的具体用法?PHP COMMONFUNC::input_fun怎么用?PHP COMMONFUNC::input_fun使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COMMONFUNC
的用法示例。
在下文中一共展示了COMMONFUNC::input_fun方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COMMONFUNC
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
$fldPageStatus = 1;
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldPageTitle = $func->input_fun($_POST['fldPageTitle']);
$fldPageDescraption = $func->input_fun($_POST['fldPageDescraption']);
$fldPageMetaTitle = $func->input_fun($_POST['fldPageMetaTitle']);
$fldPageMetaDescraption = $func->input_fun($_POST['fldPageMetaDescraption']);
$fldPageMetaKeyword = $func->input_fun($_POST['fldPageMetaKeyword']);
$fldPageStatus = $func->input_fun($_POST['fldPageStatus']);
$whereClause = "fldPageTitle='" . $func->input_fun($_POST['fldPageTitle']) . "'";
if ($db->MatchingRec(TBL_PAGE, $whereClause) > 0) {
#user Username already exists
$error_msg = 'This Page Already Exists!';
$flag++;
}
if ($flag == 0) {
//Insert data
$strDataArr = array('fldPageTitle' => $func->input_fun($_POST['fldPageTitle']), 'fldPageDescraption' => $func->input_fun($_POST['fldPageDescraption']), 'fldPageMetaTitle' => $func->input_fun($_POST['fldPageMetaTitle']), 'fldPageMetaDescraption' => $func->input_fun($_POST['fldPageMetaDescraption']), 'fldPageMetaKeyword' => $func->input_fun($_POST['fldPageMetaKeyword']), 'fldPageAddedDate' => date("d-y-m"), 'fldPageStatus' => $func->input_fun($_POST['fldPageStatus']));
$db->insertRec(TBL_PAGE, $strDataArr);
示例2: COMMONFUNC
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
$fldStatus = 1;
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldTitle = $func->input_fun($_POST['fldTitle']);
$fldDescription = $func->input_fun($_POST['fldDescription']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$whereClause = "fldTitle='" . $func->input_fun($_POST['fldTitle']) . "'";
if ($db->MatchingRec("tbl_notes", $whereClause) > 0) {
#user Username already exists
$error_msg = 'This Note Already Exists!';
$flag++;
}
if ($flag == 0) {
//Insert data
$strDataArr = array('fldTitle' => $func->input_fun($_POST['fldTitle']), 'fldDescription' => $func->input_fun($_POST['fldDescription']), 'fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->insertRec("tbl_notes", $strDataArr);
#redirect to listing page on successfull updation
header("Location: ADNotesList.php?msg=Note is Added Successfully, ");
}
示例3:
$fldVertical = "";
$fld40_yardDash = "";
$fldShuttleRun = "";
$fldBenchPressMax = "";
$fldSquatMax = "";
$fldGPA = "";
$fldSATScore = "";
$fldACTScore = "";
$fldClassRank = "";
$fldClearinghouseEligible = "";
$fldIntendedMajor = "";
}
if ($_POST['isSubmit'] == 'save') {
if ($_GET['fldId'] != "") {
//Edit the user info
$fldUsername = $func->input_fun($_POST['fldUsername']);
$fldEmail = $func->input_fun($_POST['fldEmail']);
$fldFirstname = $func->input_fun($_POST['fldFirstname']);
$fldLastname = $func->input_fun($_POST['fldLastname']);
$fldClass = $func->input_fun($_POST['fldClass']);
$fldHeight = $func->input_fun($_POST['fldHeight']);
$fldWeight = $func->input_fun($_POST['fldWeight']);
$fldDescription = $func->input_fun($_POST['fldDescription']);
$fldSchool = $func->input_fun($_POST['fldSchool']);
$fldSport = $func->input_fun($_POST['fldSport']);
$fldPrimaryPosition = $func->input_fun($_POST['fldPrimaryPosition']);
$fldSecondaryPosition = $func->input_fun($_POST['fldSecondaryPosition']);
$fldVertical = $func->input_fun($_POST['fldVertical']);
$fld40_yardDash = $func->input_fun($_POST['fldSport']);
$fldShuttleRun = $func->input_fun($_POST['fld40_yardDash']);
$fldBenchPressMax = $func->input_fun($_POST['fldBenchPressMax']);
示例4: getExtension
$lnb = "10";
$error_msg = '';
$flag = 0;
function getExtension($str)
{
$i = strrpos($str, ".");
if (!$i) {
return "";
}
$l = strlen($str) - $i;
$ext = substr($str, $i + 1, $l);
return $ext;
}
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldSchoolname = $func->input_fun($_POST['fldSchoolname']);
$fldUserName = $func->input_fun($_POST['fldUserName']);
//$city = $func->input_fun($_POST['city']);
$whereClause = "fldUserName='" . $fldUserName . "'";
if ($db->MatchingRec(TBL_HS_AAU_TEAM, $whereClause) > 0) {
#user Username already exists
$error_msg = 'This School User Name Already Exists!';
$flag++;
}
if ($flag == 0) {
define("MAX_SIZE", "400");
$errors = 0;
///////////
$image = $_FILES['fldLogo']['name'];
if ($image) {
$filename = stripslashes($_FILES['fldLogo']['name']);
示例5: array
$db->next_record();
$fldName = $db->f('fldName');
$fldNameint = $db->f('fldNameint');
$fldParentId = $db->f('fldParentId');
$fldStatus = $db->f('fldStatus');
}
} else {
$fldName = "";
$fldNameint = "";
$fldParentId = "";
$fldStatus = "";
}
if ($_POST['isSubmit'] == 'save') {
$where = "fldId=" . $fldId;
//Update data
$strDataArr = array('fldName' => $func->input_fun($_POST['fldName']), 'fldNameint' => $func->input_fun($_POST['fldNameint']), 'fldParentId' => $func->input_fun($_POST['fldParentId']), 'fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->updateRec(TBL_ATHLETE_STATS_CATAGORY, $strDataArr, $where);
#redirect to listing page on successfull updation
header("Location: ADAthleteCatagoryList.php?page=" . $_REQUEST['page'] . "&msg=Category Updated Successfully!");
if ($error_msg != "") {
$fldName = $_REQUEST['fldName'];
$fldNameint = $_REQUEST['fldNameint'];
$fldParentId = $_REQUEST['fldParentId'];
$fldfldStatus = $_REQUEST['fldfldStatus'];
}
}
//END if submit
?>
<script language="JavaScript" type="text/JavaScript">
示例6: array
$db->next_record();
$fldName = $db->f('fldName');
$fldAddress = $db->f('fldCoachName');
$fldContactInfo = $db->f('fldCoachPhone');
$fldStatus = $db->f('fldStatus');
}
} else {
$fldName = "";
$fldAddress = "";
$fldContactInfo = "";
$fldStatus = "";
}
if ($_POST['isSubmit'] == 'save') {
$where = "fldId=" . $fldId;
//Update data
$strDataArr = array('fldCoachName' => $func->input_fun($_POST['fldAddress']), 'fldCoachPhone' => $func->input_fun($_POST['fldContactInfo']), 'fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->updateRec(TBL_HS_AAU_TEAM_OTHER, $strDataArr, $where);
if ($_POST['fldStatus'] == 1) {
$query_others = "select * from " . TBL_HS_AAU_TEAM_OTHER;
$db1->query($query_others);
$db1->next_record();
$fld_other_username = $db1->f('fldUserId');
$query_others = "select * from " . TBL_ATHELETE_REGISTER . " where fldId ='" . $fld_other_username . "' and fldSchool ='others'";
$db2->query($query_others);
$db2->next_record();
$db2->f('fldEmail');
$where1 = "fldId ='" . $fld_other_username . "'";
//Update data
if ($func->input_fun($_POST['fldStatus']) == 1) {
$status = "ACTIVE";
}
示例7:
$fldStatus = "";
$fldSubscribe = "";
$fldPosition = "";
$fldNeedType = "";
$fldEmail = "";
$fldFirstName = "";
$fldLastName = "";
$fldAlternativeEmail = "";
$fldPhone = "";
$fldAlternativePhone = "";
$fldDescriPation = "";
}
if ($_POST['isSubmit'] == 'save') {
if ($_GET['fldId'] != "") {
//Edit the user info
$fldUserName = $func->input_fun($_POST['fldUserName']);
$fldPassword = $func->input_fun($_POST['fldPassword']);
$fldCollegename = $func->input_fun($_POST['fldCollegename']);
$fldCity = $func->input_fun($_POST['fldCity']);
$fldState = $func->input_fun($_POST['fldState']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$fldSubscribe = $func->input_fun($_POST['fldSubscribe']);
$fldPosition = $func->input_fun($_POST['fldPosition']);
$fldNeedType = $func->input_fun($_POST['fldNeedType']);
$fldEmail = $fldDescriPation = $func->input_fun($_POST['fldEmail']);
$fldFirstName = $func->input_fun($_POST['fldFirstName']);
$fldLastName = $func->input_fun($_POST['fldLastName']);
$fldAlternativeEmail = $func->input_fun($_POST['fldAlternativeEmail']);
$fldPhone = $func->input_fun($_POST['fldPhone']);
$fldAlternativePhone = $func->input_fun($_POST['fldAlternativePhone']);
$fldDescriPation = $func->input_fun($_POST['fldDescriPation']);
示例8: COMMONFUNC
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldSchoolname = $func->input_fun($_POST['fldSchoolname']);
$whereClause = "fldSchoolname='" . $fldSchoolname . "'";
if ($db->MatchingRec(TBL_HS_AAU_TEAM, $whereClause) > 0) {
#user Username already exists
$error_msg = 'This HS/AAU Team Code Already Exists!';
$flag++;
}
if ($flag == 0) {
$errors = 0;
//Insert data
$Zipcode_lat_lon = $func->getLatLong($func->input_fun($_POST['fldZipcode']), MAPS_APIKEY);
$strDataArr = array('fldSchoolname' => $func->input_fun($_POST['fldSchoolname']), 'fldAddress' => $func->input_fun($_POST['fldAddress']), 'fldCity' => $func->input_fun($_POST['fldCity']), 'fldState' => $func->input_fun($_POST['fldState']), 'fldZipcode' => $func->input_fun($_POST['fldZipcode']), 'fldStatus' => $func->input_fun($_POST['fldStatus']), 'fldEnrollment' => $func->input_fun($_POST['fldEnrollment']), 'fldLatitude' => $Zipcode_lat_lon['Latitude'], 'fldLongitude' => $Zipcode_lat_lon['Longitude']);
//$s=$_POST;
//print_r($s);
$db->insertRec(TBL_HS_AAU_TEAM, $strDataArr);
#redirect to listing page on successfull updation
示例9: COMMONFUNC
## Page name : ADChangePassword.php
## Create Date : 23/06/2009
## Description : It is use to change the admin password.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "0";
$error_msg = '';
if ($_POST['isSubmit'] == 'save') {
if ($_SESSION['ADMIN_USER'] != "") {
$whereClause = "username='" . $_SESSION['ADMIN_USER'] . "' and password ='" . $func->input_fun($_POST['oldpassword']) . "'";
if ($db->MatchingRec(TBL_ADMIN, $whereClause) == 0) {
$error_msg = 'Please enter correct old password!';
} else {
if ($error_msg == '') {
$strDataArr = array('password ' => $func->input_fun($_POST['newpassword']));
$where = "username='" . $_SESSION['ADMIN_USER'] . "'";
$db->updateRec(TBL_ADMIN, $strDataArr, $where);
header("Location: ADChangePassword.php?page=" . $_REQUEST['page'] . "&msg=Admin password changed successfully!");
}
}
}
//this section is use to filup the value after erro message.
if ($error_msg != "") {
$oldpassword = $_REQUEST['oldpassword'];
$newpassword = $_REQUEST['newpassword'];
示例10: filesize
$size = filesize($_FILES['fldImage']['tmp_name']);
if ($size > MAX_SIZE * 1024 * 1024) {
$error_msg = "You have exceeded the size limit";
$errors = 1;
}
$image_name = "cpn_" . time() . '.' . $extension;
$newname = "athimages/" . $image_name;
$copied = copy($_FILES['fldImage']['tmp_name'], $newname);
}
}
//Update data
$fldUsername = $_SESSION['FRONTEND_USER'];
$where = "fldUsername='" . $fldUsername . "'";
if ($fldAdminAthleticStat != 1) {
$nowToday = strtotime(date("now"));
$strDataArr = array('fldEmail' => $func->input_fun($_POST['fldEmail']), 'fldFirstname' => $func->input_fun($_POST['fldFirstname']), 'fldLastname' => $func->input_fun($_POST['fldLastname']), 'fldClass' => $func->input_fun($_POST['fldClass']), 'fldHeight' => $func->input_fun($_POST['fldHeight']), 'fldWeight' => $func->input_fun($_POST['fldWeight']), 'fldDescription' => $func->input_fun($_POST['fldDescription']), 'fldPrimaryPosition' => $func->input_fun($_POST['fldPrimaryPosition']), 'fldSecondaryPosition' => $func->input_fun($_POST['fldSecondaryPosition']), 'fldVertical' => $func->input_fun($_POST['fldVertical']), 'fld40_yardDash' => $func->input_fun($_POST['fld40_yardDash']), 'fldShuttleRun' => $func->input_fun($_POST['fldShuttleRun']), 'fldBenchPressMax' => $func->input_fun($_POST['fldBenchPressMax']), 'fldSquatMax' => $func->input_fun($_POST['fldSquatMax']), 'fldGPA' => $func->input_fun($_POST['fldGPA']), 'fldSATScore' => $func->input_fun($_POST['fldSATScore']), 'fldACTScore' => $func->input_fun($_POST['fldACTScore']), 'fldClassRank' => $func->input_fun($_POST['fldClassRank']), 'fldClearinghouseEligible' => $func->input_fun($fldClearinghouseEligible), 'fldJerseyNumber' => $func->input_fun($_POST['fldJerseyNumber']), 'fldImage' => $image_name, 'fldIntendedMajor' => $func->input_fun($_POST['fldIntendedMajor']));
} else {
if ($fldAdminAthleticStat == 1) {
$strDataArr = array('fldEmail' => $func->input_fun($_POST['fldEmail']), 'fldFirstname' => $func->input_fun($_POST['fldFirstname']), 'fldLastname' => $func->input_fun($_POST['fldLastname']), 'fldClass' => $func->input_fun($_POST['fldClass']), 'fldWeight' => $func->input_fun($_POST['fldWeight']), 'fldDescription' => $func->input_fun($_POST['fldDescription']), 'fldVertical' => $func->input_fun($_POST['fldVertical']), 'fldBenchPressMax' => $func->input_fun($_POST['fldBenchPressMax']));
}
}
if ($_POST['fldSchool'] != "others") {
if ($fldSchool == 'others') {
$String_Delete_Query = "delete from " . TBL_HS_AAU_TEAM_OTHER . " where fldUserId =" . $fldAthleteid;
$db->query($String_Delete_Query);
}
}
if ($_POST['fldSchool'] == "others") {
$whereClause_team = "fldSchoolname='" . $func->input_fun($_POST['txtfldName']) . "'";
$flagss = 0;
if ($db->MatchingRec(TBL_HS_AAU_TEAM, $whereClause_team) > 0) {
示例11: COMMONFUNC
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
$fldStatus = 1;
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldName = $func->input_fun($_POST['fldName']);
$fldNameint = $func->input_fun($_POST['fldNameint']);
$fldParentId = $func->input_fun($_POST['fldParentId']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$whereClause = "fldName='" . $func->input_fun($_POST['fldName']) . "'";
if ($flag == 0) {
//Insert data
$strDataArr = array('fldName' => $func->input_fun($_POST['fldName']), 'fldNameint' => $func->input_fun($_POST['fldNameint']), 'fldParentId' => $func->input_fun($_POST['fldParentId']), 'fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->insertRec(TBL_ATHLETE_STATS_CATAGORY, $strDataArr);
#redirect to listing page on successfull updation
header("Location: ADAthleteCatagoryList.php?msg=Catagory is Added Successfully, ");
}
//this section is use to filup the value after erro message.
if ($error_msg != "") {
$fldName = $_REQUEST['fldName'];
$fldNameint = $_REQUEST['fldNameint'];
示例12: stripslashes
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$fldTitle = $db->f('fldTitle');
$fldVideo = $db->f('fldVideo');
$fldStatus = $db->f('fldStatus');
}
} else {
$fldTitle = " ";
$fldVideo = " ";
$fldStatus = " ";
}
//Submit Form
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldTitle = $func->input_fun($_POST['fldTitle']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$video_upload = $_FILES['fldVideo']['name'];
if ($video_upload) {
$filename = stripslashes($_FILES['fldVideo']['name']);
$extension = getExtension($filename);
$extension = strtolower($extension);
if ($extension != "mov" && $extension != "flv" && $extension != "avi" && $extension != "mp4" && $extension != "wmv" && $extension != "mpeg" && $extension != "mpg") {
$error_msg = 'Unknown Video Extension: only .mov .flv .avi .mp4 .wmv .mpeg .mpg are supported';
$flag++;
} else {
$size = filesize($_FILES['fldVideo']['tmp_name']);
if ($size > MAX_SIZE * 1024) {
$error_msg = 'This Game Tape exceeds the 200MB Size Limit, please upload a smaller version.';
$flag++;
}
示例13: array
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$fldName = $db->f('fldName');
$fldStatus = $db->f('fldStatus');
}
} else {
$fldName = "";
$fldStatus = "";
}
if ($_POST['isSubmit'] == 'save') {
$where = "fldId=" . $fldId;
//Update data
$strDataArr = array('fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->updateRec(TBL_OTHER, $strDataArr, $where);
if ($_POST['fldStatus'] == 1) {
$query_others = "select * from " . TBL_OTHER;
$db1->query($query_others);
$db1->next_record();
$fld_other_username = $db1->f('fldUserId');
$query_others = "select * from " . TBL_COLLEGE_COACH_REGISTER . " where fldUserName ='" . $fld_other_username . "' and fldCollegename ='other' and fldStatus ='ACTIVE'";
$db2->query($query_others);
$db2->next_record();
$db2->f('fldEmail');
$where1 = "fldName ='" . $fldName . "'";
//Update data
$strDataArr_college = array('fldStatus' => $func->input_fun($_POST['fldStatus']));
$db3->updateRec(TBL_COLLEGE, $strDataArr_college, $where1);
$subjectStre = "College Add Confirmation";
示例14: getExtension
ini_set('max_execution_time', 600);
//Get Video Extension
function getExtension($str)
{
$i = strrpos($str, ".");
if (!$i) {
return "";
}
$l = strlen($str) - $i;
$ext = substr($str, $i + 1, $l);
return $ext;
}
//Submit Form
if ($_POST['isSubmit'] == 'save') {
//get form data
$fldTitle = $func->input_fun($_POST['fldTitle']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$video_upload = $_FILES['fldVideo']['name'];
if ($video_upload) {
$filename = stripslashes($_FILES['fldVideo']['name']);
$extension = getExtension($filename);
$extension = strtolower($extension);
if ($extension != "mov" && $extension != "flv" && $extension != "avi" && $extension != "mp4" && $extension != "wmv" && $extension != "mpeg" && $extension != "mpg") {
$error_msg = 'Unknown Video Extension: only .mov .flv .avi .mp4 .wmv .mpeg .mpg are supported';
$flag++;
} else {
$size = filesize($_FILES['fldVideo']['tmp_name']);
if ($size > MAX_SIZE * 1024) {
$error_msg = 'This Game Tape exceeds the 50MB Size Limit, please upload a smaller version.';
$flag++;
}
示例15: COMMONFUNC
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
if ($_POST['isSubmit'] == 'save') {
//Insert the block message info
$fldFrom = $func->input_fun($_POST['fldFrom']);
$fldSport = $func->input_fun($_POST['fldSport']);
$fldTo = $func->input_fun($_POST['fldTo']);
$fldStartdate = $func->input_fun($_POST['fldStartdate']);
$fldEndDate = $func->input_fun($_POST['fldEndDate']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
if ($flag == 0) {
//Insert data
$strDataArr = array('fldFrom' => $func->input_fun($_POST['fldFrom']), 'fldSport' => $func->input_fun($_POST['fldSport']), 'fldTo' => $func->input_fun($_POST['fldTo']), 'fldStartdate' => $func->input_fun($_POST['fldStartdate']), 'fldEndDate' => $func->input_fun($_POST['fldEndDate']), 'fldStatus' => $func->input_fun($_POST['fldStatus']));
$db->insertRec(TBL_BLOCK_MESSAGE, $strDataArr);
#redirect to listing page on successfull updation
header("Location: ADBlockMessageList.php?msg=You have Successfully Block Messaging between the selected Criteria ");
}
//this section is use to filup the value after erro message.
if ($error_msg != "") {
$fldFrom = $_REQUEST['fldFrom'];