Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($nour == "Noureddyne")
- {
- ?>
- <?
- date_default_timezone_set('Africa/Lagos');
- $views="0";
- $date = date("d/m/y h:i:s");
- $ip = $_SERVER['REMOTE_ADDR']?:($_SERVER['HTTP_X_FORWARDED_FOR']?:$_SERVER['HTTP_CLIENT_IP']);
- $p_img = $_POST['t_img'];
- $p_name = $_POST['t_name'];
- $p_content = $_POST['t_post'];
- $p_label = $_POST['t_label'];
- $p_keywords = $_POST['t_keywords'];
- $p_desc = $_POST['t_desc'];
- $p_label_name = $_POST['label_name'];
- if(isset($_POST['newpost'])){
- if(empty($p_img)OR empty($p_name) OR empty($p_keywords) OR empty($p_desc)){
- echo "<div class='error'>Sorry Problem,Please Try Again!</div>";
- }else{
- $updatesql = mysql_query ("INSERT INTO posts (t_img,t_name,t_post,t_label,t_keywords,t_desc,t_date,t_ip,t_views,label_name) VALUES ('".$p_img."','".$p_name."','".$p_content."','".$p_label."','".$p_keywords."','".$p_desc."',NOW(),'".$ip."','".$views."','".$p_label_name."')");
- echo"<div class='ok'>The Article Was added successfully</div>";
- echo"<meta http-equiv='refresh' content='1; url=?admin=All_articles'/>";
- }
- }
- ?>
- <form action="?admin=new-article" method="POST">
- <br>
- <center>
- <div style="width: 90%;">
- <input name="t_img" type="text" placeholder="image Of The Article...." class="box01">
- <br>
- <br>
- <input name="t_name" onkeyup="this.value = this.value.replace(/[']/g, '')" type="text" class="box01" placeholder="Title of The Article....">
- <br>
- <br>
- <textarea id="editor1" name="t_post" style="width:100%;">
- Start writing Your Article from here :) ....
- </textarea>
- <script type="text/javascript">
- CKEDITOR.replace( 'editor1' );
- </script>
- <br>
- <textarea onkeyup="this.value = this.value.replace(/[']/g, '')" style="width: 100%;min-height: 90px;margin-left: 0px;margin-right: 0px;padding: 10px;outline: none;" name="t_keywords" placeholder="Keywords For this Article (xxxx,xxxx,xxxxx,xxxxxx,xxxxxx,xxxx)"></textarea>
- <br>
- <br>
- <textarea onkeyup="this.value = this.value.replace(/[']/g, '')" style="width: 100%;min-height: 90px;margin-left: 0px;margin-right: 0px;padding: 10px;outline: none;" name="t_desc" placeholder="short description For This Article (xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxx)"></textarea>
- <br>
- <br>
- <label>
- <select onchange="myFunction(this)" name="t_label" id="purpose" style="font-family:verdana;padding: 10px;outline: none;border-radius: 5px;">
- <option>Choose Label For your Article...</option>
- <?
- $sqllom = mysql_query("SELECT * FROM labels");
- while($sqlsorry = mysql_fetch_object($sqllom)){
- echo"<option value='".$sqlsorry->cat_id."'>".$sqlsorry->cat_name."</option>";
- }
- ?>
- </select>
- </label>
- <br>
- <textarea name="label_name" id="demo" style="display:none;"></textarea>
- <script>
- function myFunction(selTag) {
- var x = selTag.options[selTag.selectedIndex].text;
- document.getElementById("demo").innerHTML = x;
- }
- </script>
- <br>
- <center>
- <br>
- <input name="newpost" type="submit" class="myButton" value="Add Now">
- </center>
- <br>
- </center>
- </form>
- <?php
- }
- else
- {
- ?>
- <!-- This Message Not For You -->
- <center>
- i Catched You dirty human! What are you doing here, Fuck You and Go Away you are a dirty Men
- <br>
- <br>
- ./ Noureddyne Boumadyen
- </center>
- <!-- This Message For Hackers ^_^-->
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement