OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📄
COMMITMENT
2.04 KB
02/14/2020 06:07:54 AM
rw-r--r--
📄
Create.php
8.23 KB
08/09/2020 05:02:02 AM
rw-r-xr--
📄
Create_o.php
1.29 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
Exception.php
1.18 KB
02/14/2020 06:08:53 AM
rw-r--r--
📁
Facebook
-
03/17/2019 06:15:28 AM
rwxrwxr-x
📄
LICENSE
25.91 KB
02/14/2020 06:08:20 AM
rw-r--r--
📄
OAuth.php
3.66 KB
02/14/2020 06:09:01 AM
rw-r--r--
📁
PHPMailer
-
08/07/2020 11:37:08 AM
rwxr-xr-x
📄
PHPMailer.php
160.5 KB
05/27/2020 05:14:39 AM
rw-r--r--
📄
POP3.php
10.76 KB
05/27/2020 05:14:39 AM
rw-r--r--
📄
README.md
4.1 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📄
SECURITY.md
4.48 KB
05/27/2020 05:14:39 AM
rw-r--r--
📄
SMTP.php
43.16 KB
05/27/2020 05:14:39 AM
rw-r--r--
📄
VERSION
5 bytes
02/14/2020 06:08:32 AM
rw-r--r--
📄
auth.php
1.54 KB
05/27/2020 05:14:36 AM
rw-rw-r--
📄
auto-ajax.php
944 bytes
05/27/2020 05:14:36 AM
rw-rw-r--
📄
autosave.php
1.95 KB
05/27/2020 05:14:36 AM
rw-rw-r--
📄
body_insert.php
702 bytes
05/27/2020 05:14:36 AM
rw-rw-r--
📁
buffer
-
03/17/2019 06:13:29 AM
rwxr-xr-x
📄
canvas.html
1.79 KB
05/27/2020 05:14:36 AM
rw-r--r--
📄
canvas.php
4.77 KB
07/15/2020 02:09:48 AM
rw-r--r--
📄
change.php
3.18 KB
05/27/2020 05:14:36 AM
rw-rw-r--
📄
composer.json
1.52 KB
05/27/2020 05:14:36 AM
rw-r--r--
📄
config_twitter.php
359 bytes
05/27/2020 05:14:36 AM
rw-rw-r--
📄
confirmation.php
4.85 KB
05/27/2020 05:14:36 AM
rw-rw-r--
📄
cream.sql
1.78 MB
02/11/2020 11:29:52 AM
rw-rw-r--
📄
cs_view-new.php
4.77 KB
07/22/2020 11:35:27 AM
rw-r--r--
📁
css
-
07/13/2020 08:15:44 AM
rwxrwxr-x
📄
dashboard.php
781 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
dashboard2.php
408 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
dbConfig.php
423 bytes
05/27/2020 05:59:52 AM
rw-rw-r--
📄
dbconn.php
396 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
delete.php
405 bytes
05/27/2020 05:14:37 AM
rw-r-xr--
📄
delete_feed.php
432 bytes
08/09/2020 05:02:03 AM
rw-r--r--
📄
delete_gallery_image.php
462 bytes
07/12/2020 04:09:54 PM
rw-r--r--
📄
delete_newsletter.php
326 bytes
05/27/2020 05:14:37 AM
rw-r--r--
📄
delete_schedule.php
369 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
edit.php
7.59 KB
08/09/2020 05:02:06 AM
rw-r--r--
📄
edit_post.php
2.31 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📁
editor
-
07/16/2019 10:20:37 AM
rwxrwxr-x
📄
editor.css
10.14 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
editor.js
62.73 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
editor.php
2.16 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
ex.php
377 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
fetchrss.php
1.42 KB
07/19/2020 07:00:05 AM
rw-r--r--
📁
fonts
-
03/17/2019 06:15:39 AM
rwxrwxr-x
📄
footer.php
18 bytes
05/27/2020 05:14:37 AM
rw-rw-r--
📄
forgot_link.php
4.23 KB
08/05/2020 02:24:17 PM
rw-rw-r--
📄
forgotconfirmation.php
4.45 KB
02/11/2020 10:49:14 AM
rw-rw-r--
📄
forgotpassword.php
2.72 KB
08/05/2020 02:22:46 PM
rw-rw-r--
📁
form
-
03/17/2019 06:16:18 AM
rwxrwxr-x
📄
galery.php
2.75 KB
07/12/2020 04:10:17 PM
rw-r--r--
📄
galery_action.php
1.23 KB
07/21/2020 04:28:40 PM
rw-r--r--
📁
genai_backup
-
06/22/2024 04:21:20 AM
rwxr-xr-x
📄
get_account_action.php
1.15 KB
02/11/2020 12:27:03 PM
rw-rw-r--
📄
get_oauth_token.php
4.75 KB
05/27/2020 05:14:37 AM
rw-r--r--
📄
getaccount.php
3.95 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
gulpfile.js
3.41 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
header.php
9.06 KB
07/19/2020 09:00:59 AM
rw-r-xr--
📄
header_forbid.php
7.46 KB
02/11/2020 10:49:15 AM
rw-rw-r--
📄
header_publish.php
8.08 KB
07/13/2020 08:14:05 AM
rw-r--r--
📄
home.html
4.29 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
home.php
8.93 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
htdocstest.php
109 bytes
05/27/2020 05:14:38 AM
rw-r--r--
📄
image_check.php
102.74 KB
05/27/2020 05:14:38 AM
rw-r--r--
📁
images
-
07/15/2020 01:05:43 AM
rwxrwxr-x
📁
img
-
02/10/2020 02:47:45 PM
rwxrwxrwx
📄
index.html
4.2 KB
07/27/2020 04:25:39 AM
rw-rw-r--
📄
indexpost.php
1.09 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
info.php
22 bytes
08/16/2020 09:58:32 AM
rw-r--r--
📄
j13publish.php
14.75 KB
07/13/2020 11:16:28 AM
rw-r--r--
📁
js
-
02/03/2020 12:32:50 PM
rwxrwxr-x
📄
js-login.php
1.83 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📁
landing_page
-
02/03/2020 12:36:45 PM
rwxr-xr-x
📁
language
-
02/14/2020 06:07:47 AM
rwxr-xr-x
📄
latest_news.php
14.71 KB
07/13/2020 07:05:38 AM
rw-r-xr--
📁
linkedin-oauth
-
03/17/2019 06:19:17 AM
rwxrwxr-x
📄
linkedin_callback.php
2.94 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
login.php
2.4 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
logout.php
565 bytes
07/12/2020 04:10:56 PM
rw-r-xr--
📁
logs
-
03/17/2019 06:25:15 AM
rwxrwxr-x
📄
mailer.php
7.48 KB
08/07/2020 04:20:57 AM
rw-r--r--
📄
measure.php
4.53 KB
07/28/2020 01:07:53 PM
rw-r--r--
📄
meme.php
2.62 KB
07/12/2020 04:10:59 PM
rw-r--r--
📄
meme_image.php
1.54 KB
07/12/2020 04:24:15 PM
rw-r--r--
📄
menu.php
3.61 KB
07/15/2020 09:52:13 AM
rw-rw-r--
📄
mycollection.php
13.91 KB
08/09/2020 05:02:07 AM
rw-r--r--
📄
myfeeds.php
13 KB
05/31/2020 07:22:15 AM
rw-r-xr--
📄
mynewsletter.php
12.78 KB
02/11/2020 10:49:15 AM
rw-rw-r--
📄
mystudies.php
6.85 KB
05/20/2020 05:16:56 AM
rw-r--r--
📄
mystudiesaction.php
351 bytes
05/19/2020 08:49:42 AM
rw-r--r--
📄
nailer.php
28 bytes
04/11/2020 01:14:07 PM
rw-r--r--
📁
news
-
02/13/2020 02:12:09 PM
rwxrwxrwx
📄
newsignin.php
1.17 KB
07/13/2020 02:38:34 PM
rw-r--r--
📄
newsletter.php
23.38 KB
07/19/2020 06:37:38 AM
rw-r-xr--
📄
newssletterfooter.html
1013 bytes
05/27/2020 05:14:38 AM
rw-rw-r--
📄
newssletterheader.html
6.6 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
o_canvas.php
2.79 KB
02/20/2020 07:02:31 AM
rw-r--r--
📄
old_view.php
5.5 KB
07/21/2020 03:26:55 PM
rw-r--r--
📄
package-lock.json
259.06 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📄
package.json
1.38 KB
05/27/2020 05:14:38 AM
rw-rw-r--
📁
plugin
-
01/30/2020 07:02:22 AM
rwxr-xr-x
📄
publish.php
16.26 KB
07/15/2020 02:53:21 PM
rw-r--r--
📄
register.php
2.11 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📁
resources
-
03/17/2019 06:19:24 AM
rwxrwxr-x
📄
rss_feed.php
8.05 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📄
rss_submit.php
1.47 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📄
rssfeed.php
9.52 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📄
rssfeed2.php
8.29 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📄
rssfeed_menu.php
8.62 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📁
rssfeeds
-
03/17/2019 06:25:03 AM
rwxrwxr-x
📄
savepost.php
265 bytes
04/12/2020 06:43:59 AM
rw-r--r--
📄
schedule.php
808 bytes
05/27/2020 05:14:39 AM
rw-rw-r--
📄
schedule_list.php
3.51 KB
05/27/2020 05:14:39 AM
rw-rw-r--
📁
scss
-
02/03/2020 12:33:11 PM
rwxrwxr-x
📄
send.php
0 bytes
05/27/2020 05:14:39 AM
rw-r--r--
📄
sent.php
2.62 KB
08/08/2020 02:45:00 AM
rw-r--r--
📄
settings.php
23.82 KB
07/24/2020 04:53:32 AM
rw-r--r--
📄
signin.php
3.43 KB
07/23/2020 11:54:32 PM
rw-rw-r--
📄
signin_up.php
8.64 KB
07/24/2020 12:12:49 AM
rw-r--r--
📄
signup.php
5.68 KB
07/24/2020 12:12:50 AM
rw-r--r--
📄
style.css
36.8 KB
05/27/2020 05:14:40 AM
rw-rw-r--
📄
test1.php
39 bytes
05/27/2020 05:14:40 AM
rw-rw-r--
📁
test_folder
-
01/30/2020 09:29:30 AM
rwxrwxr-x
📄
test_post_15.php
771 bytes
05/27/2020 05:14:40 AM
rw-rw-r--
📄
tinymc.php
399 bytes
05/27/2020 05:14:40 AM
rw-r--r--
📁
tinymce
-
02/20/2020 05:35:36 AM
rwxr-xr-x
📄
twitter.php
1.94 KB
05/27/2020 05:14:40 AM
rw-rw-r--
📄
twitter_callback.php
1.49 KB
05/27/2020 05:14:40 AM
rw-rw-r--
📁
twitteroauth-0.7.4
-
03/17/2019 06:25:58 AM
rwxrwxr-x
📄
update_action.php
1.14 KB
06/03/2020 03:41:34 AM
rw-r--r--
📁
upload
-
08/21/2020 11:13:53 AM
rwxrwxrwx
📁
vendor
-
02/06/2020 10:24:08 AM
rwxr-xr-x
📄
view.php
5.5 KB
08/09/2020 01:54:43 PM
rw-r--r--
📄
z_signup.php
5.69 KB
07/15/2020 03:18:45 AM
rw-rw-r--
📄
zfetchrss.php
1.45 KB
05/27/2020 05:14:37 AM
rw-rw-r--
📄
zindex.php
8.18 KB
05/27/2020 05:14:38 AM
rw-r--r--
📄
zmeasure.php
4.36 KB
07/20/2020 04:41:27 AM
rw-r--r--
📄
zsettings.php
22.87 KB
05/27/2020 05:14:39 AM
rw-r-xr--
Editing: zsettings.php
Close
<?php session_start(); if(isset($_SESSION['user'])) { $user = $_SESSION['user'];}; global $heading; ?> <!-- Start header file --> <?php $current = 'settings'; include 'header.php'; ?> <style> @media only screen and (max-width: 600px) { .res{ width: 100%; /*margin-top: 70px;*/ overflow: auto; background-color: white; border:none; box-shadow: 0px 1px 0px lightgrey; } .navbar { position: relative; } } @media only screen and (min-width: 768px) { .res{ margin-left: 213px; background-color: white; border:none; box-shadow: 0px 1px 0px lightgrey; } .later{ margin-top: 10px; } } </style> <!-- End header file --> <!--- Script for live searching from database --> <script type="text/javascript"> $(document).ready(function(){ var maxField = 10; //Input fields increment limitation var addButton = $('.add_button'); //Add button selector var wrapper = $('.field_wrapper'); //Input field wrapper var fieldHTML = '<div><input type="text" name="field_name[]" value=""/><select name="field_category[]" required><option value="" disabled selected>Select url category</option><option value="Aerobics">Aerobics</option><option value="Business">Business</option><option value="Design">Design</option><option value="Education">Education</option><option value="Environment">Environment</option><option value="Fashion">Fashion</option><option value="Food-Dining">Food-Dining</option><option value="Healthcare">Healthcare</option><option value="Holidays-Vacations">Holidays-Vacations</option><option value="Lifestyle">Lifestyle</option><option value="Movies">Movies</option><option value="Music">Music</option><option value="News">News</option><option value="Outdoors">Outdoors</option><option value="Politics">Politics</option><option value="Programming">Programming</option> <option value="Psychology">Psychology</option><option value="Running">Running</option><option value="Science">Science</option><option value="Social">Social</option><option value="Spiritual">Spiritual</option><option value="Sports">Sports</option><option value="Technology">Technology</option><option value="Others">Others</option></select><a href="javascript:void(0);" class="remove_button" title="Remove field"> <i class="fa fa-2x fa-minus-circle" aria-hidden="true"></i></a></div>'; //New input field html var x = 1; //Initial field counter is 1 $(addButton).click(function(){ //Once add button is clicked if(x < maxField){ //Check maximum number of input fields x++; //Increment field counter $(wrapper).append(fieldHTML); // Add field html } }); $(wrapper).on('click', '.remove_button', function(e){ //Once remove button is clicked e.preventDefault(); $(this).parent('div').remove(); //Remove field html x--; //Decrement field counter }); var profile = location.search.split('p=')[1] if(profile == 2){ $('a[href="#rss"]').click(); } if(profile == 3){ $('a[href="#profile"]').click(); } if(profile == 4){ $('a[href="#newsletter"]').click(); } if(profile == 5){ $('a[href="#daily_newsletter"]').click(); } }); </script> <script> function showrss(str) { if (str == "") { document.getElementById("txtHint").innerHTML = ""; return; } else { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("txtHint").innerHTML = this.responseText; } }; xmlhttp.open("GET","fetchrss.php?q="+str,true); xmlhttp.send(); } } </script> <!-- End of Search script --> <!-- Start left content --> <!-- <div class="content"> <div class="single"> <h3><i class="fa fa-cogs fa-2x"></i> Settings</h3> </div> --> <div class="content"> <div class=" single"> <nav class="navbar res navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header "> <h3 class="ml-3" style="color:grey; "><i class="fa fa-cogs fa-2x"></i> Settings</h3> </div> <!-- <ul class="nav navbar-nav"> <li style="margin-top: 35px;margin-right:150px; "><input type="submit" value="Submit" name="submit" class="btn btn-warning" /></li> </ul> --> </div> </nav> </div> <div class="clear"> </div> <div class="single"> <ul class="nav nav-tabs"> <!-- <li class="active"><a data-toggle="tab" href="#rss2"><i class="fa fa-rss" aria-hidden="true"></i>Topic to Follow</a></li>--> <li class="active"><a data-toggle="tab" href="#rss"><i class="fa fa-rss" aria-hidden="true"></i> Own RSS Feeds</a></li> <li><a data-toggle="tab" href="#profile"><i class="fa fa-user" aria-hidden="true"></i> Your Profile</a></li> <li><a data-toggle="tab" href="#newsletter"><i class="fa fa-newspaper-o" aria-hidden="true"></i> Newsletter</a></li> <!-- <li><a data-toggle="tab" href="#daily_newsletter"><i class="fa fa-newspaper-o" aria-hidden="true"></i> Daily Newsletter</a></li>--> </ul> <div class="tab-content"> <div id="rss" class="tab-pane fade in active"> <div class="col-md-6 col-lg-6 col-xs-12 col-sm-12 later"> <form> <p style="color:red; margin-top:23px;">Note: Copy and paste the url you have searched in the add more feeds to save</p> <input type="text" Placeholder="Search for rss feeds link" name="rss_search" onkeyup="showrss(this.value)" style="width: 100%;padding: 12px 20px;margin: 8px 0;box-sizing: border-box;box-shadow: 0 1px 2px 0 rgba(0,0,0,.4);" > </form> <div id="txtHint" style="width: 105%;padding-top: 10%;"><b>Your RSS will be listed here...</b></div> </div> <div class=" col-md-6 col-lg-6 col-xs-12 col-sm-12"> <h2> Existing feeds</h2> <?php $sql = "SELECT * FROM kr_rssfeeds where email_id ='$user'"; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $rssfeed=$row['feed_url']; ?> <ol style="margin-bottom: 0px;"> <li> <a href="<?php echo $rssfeed ; ?>" target="_blank"><?php echo $rssfeed; ?></a> <a href="delete.php?feed_id=<?php echo $row['feed_id']; ?>" class="remove_feed"><i class="fa fa-trash"></i></a> </li> </ol><?php } } else { echo "Currently no feeds avaliable"; } ?> <h2> Add More feeds</h2> <span class="post-options"> Click on the plus sign to add more (A better line here) </span> <form action="<?=$_SERVER['PHP_SELF'];?>?p=2" method="post" > <input type="hidden" name="fuser" value="<?php echo $user; ?>"> <div class="field_wrapper"> <div> <input type="text" name="field_name[]" value="" placeholder="Enter Rss feed url" required/> <select name="field_category[]" required> <option value="" disabled selected>Select url category</option> <option value="Aerobics">Aerobics</option> <option value="Business">Business</option> <option value="Design">Design</option> <option value="Education">Education</option> <option value="Environment">Environment</option> <option value="Fashion">Fashion</option> <option value="Food-Dining">Food-Dining</option> <option value="Healthcare">Healthcare</option> <option value="Holidays-Vacations">Holidays-Vacations</option> <option value="Lifestyle">Lifestyle</option> <option value="Movies">Movies</option> <option value="Music">Music</option> <option value="News">News</option> <option value="Outdoors">Outdoors</option> <option value="Politics">Politics</option> <option value="Programming">Programming</option> <option value="Psychology">Psychology</option> <option value="Running">Running</option> <option value="Science">Science</option> <option value="Social">Social</option> <option value="Spiritual">Spiritual</option> <option value="Sports">Sports</option> <option value="Technology">Technology</option> <option value="Others">Others</option> </select> <a href="javascript:void(0);" class="add_button" title="Add field"> <i class="fa fa-2x fa-plus-circle"></i></a> </div> </div> <input type="hidden" name="uid" value="<?php echo $user_id ; ?>"> <input type="submit" value="Save" name="saverss" class="btn btn-warning" style="margin-top:2%" /> </form> <?php if(isset($_POST['saverss'])) { $feeduser=$_POST['fuser']; $field_values_array = $_REQUEST['field_name']; $field_values_arraycat = $_REQUEST['field_category']; $count = 0; foreach($field_values_array as $feedrss){ //your database query goes here $insertreview=("INSERT INTO `kr_rssfeeds` (`feed_url`,`email_id`,`category`) VALUES('".$feedrss."','".$feeduser."','".$field_values_arraycat[$count]."')"); $result= mysqli_query($db, $insertreview); $count = $count+1; } if($result) { echo ("<script>location.href='settings.php?p=2'</script>"); } else { echo "error"; } } ?> </div> </div> <div id="profile" class="tab-pane fade"> <?php $sql = "SELECT * FROM login where email_id ='$user'"; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $pname=$row['name']; $pemail=$row['email_id']; $pcomname=$row['company_name']; $pbustype=$row['business_type']; } } else { echo "Profile details is empty"; } ?> <div class="col-md-6 col-lg-6 col-xs-12 col-sm-12"> <form action="<?=$_SERVER['PHP_SELF'];?>?p=3" method="post"> <input type="hidden" name="puser" value="<?php echo $user; ?>"> <div class="form-group"> <label for="disabledTextInput" class="col-sm-5 control-label" style="color: cornflowerblue;font-size: 18px" disabled>Name</label> <div class="col-sm-7 col-xs-7 col-md-7 col-lg-7"> <input type="text" id="disabledTextInput" class="form-control" placeholder="<?php echo $pname;?>" disabled /> </div> </div> <br> <div class="form-group"> <label for="disabledSelect" class="col-sm-5 control-label" style="color: cornflowerblue;font-size: 18px" disabled>Email</label> <div class="col-sm-7"> <input type="text" id="disabledTextInput" class="form-control" placeholder="<?php echo $pemail;?>" disabled /> </div> </div> <br> <div class="form-group"> <label for="disabledSelect" class="col-sm-5 control-label" style="color: cornflowerblue;font-size: 18px" disabled>Company Name </label> <div class="col-sm-7"> <input type="text" id="disabledTextInput" class="form-control" placeholder="<?php echo $pcomname;?>" disabled /> </div> </div> <br> <div class="form-group"> <label for="disabledSelect" class="col-sm-5 control-label" style="color: cornflowerblue;font-size: 18px" disabled >Business Type</label> <div class="col-sm-7"> <input type="text" id="disabledTextInput" class="form-control" placeholder="<?php echo $pbustype;?>" disabled /> </div> </div> <div class="form-group"> <label for="disabledSelect" class="col-sm-5 control-label" style="color: cornflowerblue;font-size: 18px" disabled >Change Password</label> <div class="col-sm-7"> <input type="text" class="form-control" placeholder="Enter new password" name="changepwd" required/> </div> </div> <br> <div class="form-group"> <input type="submit" value="Update" name="submitpwd" class="btn btn-warning" style="margin-top: 5%;" /> </div> </form> <?php if(isset($_POST['submitpwd'])) { $changepass=$_POST['changepwd']; $user_id=$_POST['puser']; $updateprofile=("UPDATE login SET passwords='$changepass' WHERE email_id = '$user_id'"); $result=mysqli_query($db, $updateprofile); if ($result== true) { echo "<h3><b>Message: </b>Password updated</h3>"; } else{ echo "<h3><b>Error: </b>Error while updating password</h3>"; } } ?> </div> </div> <!-- End of Profile tab section --> <!-- Start of Editorial tab section --> <div id="editorial" class="tab-pane fade"> <!-- Start input design section --> <div class="col-md-6 col-lg-6 col-xs-12 col-sm-12"> <form action="<?=$_SERVER['PHP_SELF'];?>?p=4" method="post"> <input type="hidden" name="user" value="<?php echo $user; ?>"> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></div> <input name="reviewer_name" type="text" class="form-control" placeholder="Enter Reviewer Name" required /> </div> <span class="help-block" id="error"></span> </div> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></div> <input name="reviewer_email" type="text" class="form-control" placeholder="Enter Reviewer Email Address" required /> </div> <span class="help-block" id="error"></span> </div> <input type="submit" value="Submit" name="submit" class="btn btn-warning" /> </form> <?php if(isset($_POST['submit'])) { $reviewer_name1=$_POST['reviewer_name']; $reviewer_email1=$_POST['reviewer_email']; $user1=$_POST['user']; $insertreview=("INSERT INTO `kr_review` (`reviewer_name`,`reviewer_email`,`email_id`) VALUES('".$reviewer_name1."','".$reviewer_email1."','".$user1."')"); $result= mysqli_query($db, $insertreview); if($result) { echo "<h3><b>Message:</b>Successfully added</h3>"; } else { echo "error"; } } ?> </div> <!-- end of Input design section --> <div class="col-md-2 col-xs-12 col-sm-12 col-lg-2"></div> <!-- Start Reviewer details displaying section --> <?php $sql = "SELECT * FROM kr_review where email_id ='$user'"; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $rname=$row['reviewer_name']; $remail=$row['reviewer_email']; } } else { echo "No Reviewer details found for this account"; } ?> <div class="col-md-4 col-lg-4 col-xs-12 col-sm-12 " style="border-left: 1px solid beige;"> <div class=""> <h4>Reviewer Details</h4> <h5><b>Reviewer Name :</b><span> <?php echo $rname; ?></span></h5> <h5><b>Reviewer Email :</b><span> <?php echo $remail; ?></span></h5> </div> </div> <!-- Start Reviewer details displaying section --> </div> <!---- end of editorial tab section --> <!---- Start of topic selection tab section --> <!-- <div id="rss2" class="tab-pane fade in active"> <style> .check { opacity:0.5; color:#996; } .img-thumbnail { width:230px; } </style> <script> $(document).ready(function(e){ $(".img-check").click(function(){ $(this).toggleClass("check"); }); }); </script> <h3 style="text-align:center;">Select the category of your interest</h3> <?php $sql = "SELECT * FROM rss_category "; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $rid=$row['cat_id']; $rtitle=$row['cat_name']; $rlink=$row['cat_img']; ?> <form method="post" action="<?=$_SERVER['PHP_SELF'];?>"> <div class="col-md-4"> <div class="checkbox"> <div class="form-group"> <label style="color:#F37B41;"><img src="images/<?php echo $rlink; ?>" class="img-thumbnail img-check"><input type="checkbox" name="rss_feed[]" value="<?php echo $rid; ?>"> <h4> <?php echo $rtitle; ?></h4> </label> </div></div> </div> <?php } } ?> <div class="col-md-4" style="position: fixed;margin-left: -5%;"> <input type="submit" value="Submit" class="btn btn-warning"> </div> </form> <?php if(isset($_POST['rss_feed'])){ if (is_array($_POST['rss_feed'])) { foreach($_POST['rss_feed'] as $val){ $value = mysqli_real_escape_string($db, $val); $sqlval = "SELECT * FROM rss_category where cat_id = $value "; $resultval = mysqli_query($db, $sqlval); if (mysqli_num_rows($resultval) > 0) { // output data of each row while($rowval = mysqli_fetch_assoc($resultval)) { $rid1=$rowval['cat_id']; $rtitle1=$rowval['cat_name']; $rlink1=$rowval['cat_img']; $sql2="Insert into select_category (`cat_id`,`category`,`user_id`,`cat_image`) value('".$rid1."','".$rtitle1."','".$user."','".$rlink1."')"; $resultset = mysqli_query($db,$sql2); if($resultset == true) { //echo ("<script>location.href='rss_feed.php'</script>"); } } } }}} ?> </div> --> <!-- Start of Newsletter tab section --> <div id="newsletter" class="tab-pane fade"> <?php $sql = "SELECT * FROM kr_review where email_id ='$user'"; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $logo=$row['location']; $heading=$row['news_title']; } } else { echo "Please add logo and newsletter heading</br></br>"; } ?> <form action="<?=$_SERVER['PHP_SELF'];?>?p=4" method="post" enctype="multipart/form-data"> <input type="hidden" name="nuser" value="<?php echo $user; ?>"> <div class="col-md-5 col-lg-5 col-xs-12 col-sm-12" style="border-left: 1px solid beige;"> <!-- <h4>Newsletter Details</h4> --> <h5><strong>Newsletter Title:</strong><span> <?php echo $heading;?> </span> </h5> <h5><strong>Company Logo</strong></h5> <span> <img src="upload/<?php echo $logo; ?>" style="width:40%;height:40%" /></span> </div> <div class="col-md-2 col-lg-2 col-sm-12 col-xs-12"> </div> <div class="col-md-5 col-lg-5 col-sm-12 col-xs-12"> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"><i class="fa fa-file-text-o" aria-hidden="true"></i></div> <input name="ntitle" type="text" class="form-control" placeholder="newsletter title" required /> </div> <span class="help-block" id="error"></span> </div> <div class="control-group"> <label style="color:#3a87ad; font-size:18px;">Upload Logo</label> <input type="file" name="image" required /> </tr> </div> <div class="controls"> <button type="submit" name="imagesub" class="btn btn-success" style="margin-top: 20px; margin-right: 131px;">Save</button> </div> <?php if(isset($_POST['imagesub'])) { if (!isset($_FILES['image']['tmp_name'])) { echo ""; }else{ $file=$_FILES['image']['tmp_name']; $image = $_FILES["image"] ["name"]; $image_name= addslashes($_FILES['image']['name']); $size = $_FILES["image"] ["size"]; $error = $_FILES["image"] ["error"]; if ($error > 0){ die("Error uploading file! Code $error."); }else{ if($size > 10000000) //conditions for the file { die("Format is not allowed or file size is too big!"); } else { move_uploaded_file($_FILES["image"]["tmp_name"],"upload/" . $_FILES["image"]["name"]); $location =$_FILES["image"]["name"]; $title = $_POST['ntitle']; $nusers =$_POST['nuser']; if(mysqli_num_rows($result) > 0) { $updatenews=("UPDATE kr_review SET location='$location' , news_title = '$title' WHERE email_id='$nusers'"); $resultnews=mysqli_query($db, $updatenews); if ($resultnews== true) { echo "<h3>Newsletter details updated Successfully</h3>"; } else{ echo "<h3><b>Error: </b>Error while updating</h3>"; } } else{ $insertnews=("INSERT INTO `kr_review` (`location`,`news_title`,`email_id`) VALUES('".$location."','".$title."','".$nusers."') "); $resultnews=mysqli_query($db, $insertnews); if ($resultnews== true) { echo "<h3>Newsletter details added Successfully</h3>"; } else{ echo "<h3><b>Error: </b>Error while Adding</h3>"; } } } } } } ?> </form> </div> </div> <!-- end of Newsletter tab section --> <!-- Start of Newsletter tab section --> <!-- <div id="daily_newsletter" class="tab-pane fade"> <form action="<?=$_SERVER['PHP_SELF'];?>?p=5" method="post"> <h4> Subscribe to your daily newsletter to read top news from your feeds </h4> <div class="controls"> <button type="submit" name="imagesub1" class="btn btn-success">subscribe</button> </div> </form> <?php if(isset($_POST['imagesub1'])){ $sql="UPDATE login SET subscribe = 'yes' WHERE email_id ='$user'"; $result=mysqli_query($db, $sql); if($result==true) { echo "successfully Updated"; } else { echo "failed update"; } } ?> </div> --> <!-- end of Newsletter tab section --> </div> </div> <div class="clear"> </div> </div> <!-- End left content --> </body> </html>