Stefce 146 Posting Pro

Yeah i just removed that function and now i am using only $user_ip = $_SERVER['REMOTE_ADDR'];
It works flawless and i dont see any wrong using it like this. I was figuring out whole day what is wrong with the above code and i was not able to figure it out so i guess this is the best solution :D

Stefce 146 Posting Pro

Yes thats correct behavior but i restarted the devices and its still not working. And plus i have called my friend to check and he reported back the same
How do i solve this can you please help me?

rproffitt commented: By not denying access. +16
Stefce 146 Posting Pro

I am trying to insert the current time() and $_SERVER['REMOTE_ADDR']; into my database
I have this code

<?php
    require_once("../core/core.php");

    $user_time = time();
    $ip = $_SERVER['REMOTE_ADDR'];
    $sql = "SELECT * FROM userinfo WHERE ip = $ip";
    $result = $conn->query($sql);

    if(!$result) {
        trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); <-- line 10
        echo "Database connection failed.";
    } else {
        if($result->num_rows == 0){
            trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR);

            $sql = "INSERT INTO userinfo (ip, time) VALUES ('$ip', '$user_time')";
            $conn->query($sql);
            echo "IP ADDRESS SAVED successfully";
        } else if($result->num_rows >= 1) {
            $sql = "UPDATE userinfo SET time = '$user_time' WHERE `ip` = '$ip'";
            $conn->query($sql);
            echo "IP ADDRESS UPDATED successfully";
        }
    }
?>

But i get an error Fatal error: Wrong SQL: SELECT * FROM userinfo WHERE ip = my_real_ip Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.103.25' at line 1 in /home/appunloc/domain/folder/index.php on line 10

Stefce 146 Posting Pro

this is the website i was talking about that at the checkout was $1800

rproffitt commented: Nice. +16
Stefce 146 Posting Pro

I solved it with dynamic sitemaps and as i have read on google docs these kind of sitemaps are way better than static ones because they get updated automatically when some link is inserted or updated.

Here is the code for sitemap1 which selects the first 40k lines from DB. And i have 3 more sitemaps with 40k lines each.

<?php 
require_once("../core/core.php");

$query = "SELECT url, posttime FROM tablename LIMIT 40000";
$result = $conn->query($query);
//$result = mysqli_query($connect, $query);

$base_url = "http://domain.com/sitemap/";

header("Content-Type: application/xml; charset=utf-8");

echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL; 

echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">' . PHP_EOL;

while($row = mysqli_fetch_array($result))
{
 echo '<url>' . PHP_EOL;
 echo '<loc>'.$base_url. $row["url"] .'/</loc>' . PHP_EOL;
 echo '<lastmod>'.$row['posttime'].'</lastmod>' . PHP_EOL;
 echo '<changefreq>daily</changefreq>' . PHP_EOL;
 echo '</url>' . PHP_EOL;
}

echo '</urlset>' . PHP_EOL;

?>

and here is the .htaccess code that converts sitemap.php into sitemap.xml (this file needs to be inside the folder where the sitemaps are)

RewriteEngine ON

#show sitemap file with .xml
RewriteRule ^sitemap1\.xml/?$ sitemap1.php
Stefce 146 Posting Pro

Try like this

if($expiry==0) { 
    echo "We're sorry but your contract has expired. Contact us immediately at propzmgmt@gmail.com"; 
} elseif($expiry >= 1) { 
    header("location:sysnav.html"); 
} 

And format the SQL correctly

$sql = "UPDATE `ctltbl` SET '$expiry' = `expiry` - 1 WHERE `id` = $id";
rproffitt commented: Noice! +16
Stefce 146 Posting Pro

WOW @Dani made the notification feature faster than Elon ruined twitter :D
Great job @dani :D

rproffitt commented: Way to go Dani☑ +0
Stefce 146 Posting Pro

@rproffitt

So now it's filling with porn, Nazis and Qbots.

He just tweeted that the new tweeter policy will be freedom of speech, but not freedom of reach.
Negative/Hate tweets will be deboosted & demonetized.

You won't find the tweet unless you specifically seek it out. Which is no different from the rest of Internet.

rproffitt commented: I didn't seek it out. It came in an email from Twitter itself! +0
Stefce 146 Posting Pro

I am using cPanel and FileManager. I have these lines of code in my htaccess file
RewriteEngine on RewriteRule ^model-profile/(.*)$ https://leakedof.us/model-profile/index.php?name=$1 [L]

the exact url for the model profile is this
https://leakedof.us/model-profile/index.php?name=fitbryceadams

Feel free to visit the website there is 0 nudity. Its a fake website for "leaks"

BTW the website is hosted on KnownSRV.com

Stefce 146 Posting Pro

I have a domain that looks like this when i visit certain link https://domain.com/model-profile/index.php?name=abbychampion
the site is written in php but i dont want to show this part index.php?name= because for SEO purposes and better human reading.
Is this possible to hide ? so the link looks like this https://domain.com/model-profile/abbychampion

Stefce 146 Posting Pro

I want to get a string from different website and to display on mine.

The website have this HTML code inside it

<ul data-v-61cbae47="" class="b-tabs__nav m-tabs-default m-flex-width m-size-md m-mb-reset js-tabs-switchers m-over-separator">
   <li data-v-61cbae47="" class="b-tabs__nav__item m-current"><a data-v-61cbae47="" href="/jenawolfy" aria-current="page" class="b-tabs__nav__link m-with-rectangle-hover m-tb-sm router-link-exact-active router-link-active" id="profilePostTab"><span data-v-61cbae47="" class="b-tabs__nav__link__counter-title">130 posts</span></a></li>
   <li data-v-61cbae47="" class="b-tabs__nav__item"><a data-v-61cbae47="" href="/jenawolfy/media" class="b-tabs__nav__link m-with-rectangle-hover m-tb-sm"><span data-v-61cbae47="" class="b-tabs__nav__link__counter-title">132 Media</span></a></li>
   <!---->
</ul>

I want to get only these two strings 130 posts & 132 Media and to display on my website whenever is opened.

Is this possible to make in PHP or i need different language like python?

Stefce 146 Posting Pro

Oh sorry i removed the 2nd while loop and it works. BIG thanks

Stefce 146 Posting Pro

Thank you for your answer but this doesnt solve. It again crashing my browser

Stefce 146 Posting Pro

OFF TOPIC
Through the years i asked so many questions here but never considered donating. Now, I promise if i succeed with this method, i am gonna pay a whole year hosting + donate;
Since i am seeing guys making crazy money per day with this method i though ill give it a try.

gce517 commented: Did you donate yet? ;-) +1
Stefce 146 Posting Pro

I am trying to make to display cells in a database that are not empty, i have URL links with images inside the table and i want to display only the cells that are not empty.

For example if there is only 2 pictures added in the database i want to display only those 2, and not the rest 3 with no images

I have this code but its going on forever and its crashing my browser.

<?php
$sql = "SELECT pic1, pic2, pic3, pic4, pic5 FROM modelprofile WHERE name='$name'";
$result = $conn->query($sql);

if($result === false) {
    trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR);
} else {
    while($row = $result->fetch_assoc()) {
        $pic1 = $row["pic1"];
        $pic2 = $row["pic2"];
        $pic3 = $row["pic3"];
        $pic4 = $row["pic4"];
        $pic5 = $row["pic5"];
        while(!empty($row)) {


        ?>
        <img class="card-img-top" src="<?= $pic1 ?>" alt="">
        <br><br>
        <img class="card-img-top" src="<?= $pic2 ?>" alt="">
        <br><br>
        <img class="card-img-top" src="<?= $pic3 ?>" alt="">
        <br><br>
        <img class="card-img-top" src="<?= $pic4 ?>" alt="">
        <br><br>
        <img class="card-img-top" src="<?= $pic5 ?>" alt="">
        <br><br><br>

        <?php
        }
    }
}
?>
Muyi_1 commented: Good day +0
Stefce 146 Posting Pro

You can visit the website at https://leakedof.us/admin/index.php
the current code i have is like this

I have edited it but still doesnt give an info error i dont understand what is happening

<?php
    include '../core/core.php';
?>
<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Add Model</title>

    <!-- Bootstrap core CSS -->
    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <style>
      body {
        padding-top: 54px;
      }
      @media (min-width: 992px) {
        body {
          padding-top: 56px;
        }
      }
    </style>

  </head>

  <body>

    <!-- Navigation -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
      <div class="container">
        <a class="navbar-brand" href="../">Leaked OnlyFans Girls</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item active">
              <a class="nav-link" href="http://leakedof.us">Home</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Add Girl</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    <!-- Page Content -->
    <div class="container">
      <form method="POST" action="index.php">
      <div class="row">
          <div class="col-lg-12 text-center">
            <h3 class="mt-5">Copy the URL <font color="red">username</font> of the girl. Example: instagram.com/[<font color="red">xenia</font>]</h3>
            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="basic-addon3">https://instagram.com/</span>
              </div>
              <input type="text" placeholder="xenia" name="instaProfLink" class="form-control" id="basic-url" aria-describedby="basic-addon3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="basic-addon3">Girl Name</span>
              </div>
              <input type="text" placeholder="Full Name" name="girlName" class="form-control" id="basic-url" aria-describedby="basic-addon3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="basic-addon3">Profile Pic</span>
              </div>
              <input type="text" placeholder="Profile Picture" name="profilepic" class="form-control" id="basic-url" aria-describedby="basic-addon3">
            </div>
            <p class="lead">Add the images from the girl profile <b>(NOT REQUIRED)</b></p>
            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span class="input-group-text" id="basic-addon3">IMAGE</span>
              </div>
              <input type="text" name="pic1" placeholder="https://www.instagram.com/p/BedEtBog-DB/" class="form-control" id="basic-url" aria-describedby="basic-addon3">
            </div>
            <div class="input-group mb-3">
              <div class="input-group-prepend">
                <span …
gce517 commented: Can you share the source for core.php? +1
Stefce 146 Posting Pro

I am trying to insert into table with PHP and MySQL but the page only refresh it self when i press the button.

I haven't done debugging, i have an IF statement that displays any errors that fires if the SQL query have errors. But the thing is even the trigger_error doesnt return anything back to me so i can see whats the problem is.

I never come to this kind of problem before and i have no left ideas in my head so i can fix this.

`

<?php

        if(isset($_POST["submitGirl"])) {
            $name = $_POST['girlName'];
            $url = $_POST['instaProfLink'];
            $profilepic = $_POST['profilepic'];
            $pic1 = $_POST["pic1"];
            $pic2 = $_POST["pic2"];
            $pic3 = $_POST["pic3"];
            $pic4 = $_POST["pic4"];
            $pic5 = $_POST["pic5"];
            $tags = $_POST["tags"];

            $sql = "INSERT INTO modelprofile VALUES ('', '".htmlentities($name)."', '".htmlentities($url)."', '".htmlentities($profilepic)."', '".htmlentities($pic1)."', '".htmlentities($pic2)."', '".htmlentities($pic3)."', '".htmlentities($pic4)."', '".htmlentities($pic5)."', '".htmlentities($tags)."')";
            $result = $conn->query($sql);
            if($result === false) {
                trigger_error("A required file did not exist!", E_USER_ERROR);
                trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR);
            } else {
                echo "model added";
            }
        }
    ?>

submitGirl is the name of the button. When user press, it should add the rest info into database table, from the fields above

Stefce 146 Posting Pro

Quick update: I just found out that imgur platform gives extraordinary speed and stability. I think ill go with these guys.

Stefce 146 Posting Pro

I am using google drive to upload manually the images there and with sharing link to display them on my website. But it makes troubles sometimes the images doesn't load fully. Is this proper way of displaying the images faster on your website?
The website is coded using HTML only and doesn't have any functionality on it. Only showing pictures and text. i am planning to show 100+ images on one page.

I am using this link https://drive.google.com/uc?export=view&id=[google_drive_photo_id]

Shantun commented: You must apply src-set for image tag for various device along with google AMP +0
Stefce 146 Posting Pro

Hello everyone. I need a little help with my html code.
I want to load html file (menu.html) inside my index.html file

I am trying to achieve this using JavaScript.
Here is an example how i am trying to achieve this.

this is menu.html file

<!-- Mobile Nav (max width 767px)-->
<div class="mobile-nav">
    <!-- Navbar Brand -->
    <div class="amado-navbar-brand">
        <a href="index.html"><img src="core/img/core-img/drveniproizvodi-logo.png" alt=""></a>
    </div>
    <!-- Navbar Toggler -->
    <div class="amado-navbar-toggler">
        <span></span><span></span><span></span>
    </div>

</div>
<!-- Header Area Start -->
<header class="header-area clearfix">

    <!-- Logo -->
    <div class="logo">
        <a href="index.html"><img src="core/img/core-img/drveniproizvodi-logo.png" alt=""></a>
    </div>
    <!-- Social Button -->
    <div class="social-info d-flex justify-content-between">
        <a href="#"><i class="fa fa-pinterest" aria-hidden="true"></i></a>
        <a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a>
        <a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a>
        <a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a>
    </div>

    <div class="categories-menu">
        <a href="index.html">Почетна</a><br>
        <a href="subfolder/index.html">Столчиња</a><br>
        <a href="subfolder/index.html">Маси</a><br>
        <a href="subfolder/index.html">Даски за сецкање</a><br>
        <a href="subfolder/index.html">Привезоци</a><br>
    </div>
</header>
<!-- Header Area End -->

and this is index.html file

<html>
<head>
    <link rel="stylesheet" href="core/css/core-style.css">
    <link rel="stylesheet" href="core/style.css">
</head>
<body>

    <div id="menu"></div>

    <script>
        $(function(){
          $("#menu").load("menu.html");
        });
    </script>
</body>
</html>

The thing is, the design loads properly. But the functionality doesn't work. When i press the button to open the menu on a mobile device.
BUT when i simply paste the code from menu.html inside index.html works just fine?
Here is a picture how it looks
https://prnt.sc/h-_GWy50wOHN

Jawass commented: Nav bar- drop-down menu html (xhref) coded inline script $? Before consule to be upgrade to mobile application(APK) +2
Stefce 146 Posting Pro

I can't guess what you need to do.

I need just a couple of text and images replaced, thats all.

I found an awesome tool, APK Easy Tool you can decompile and recompile easily.
And it did my job perfectly :)

rproffitt commented: Will take a look at that. Thanks for sharing. +15
Stefce 146 Posting Pro

Hello everyone how are you doing? I wonder if there is a way i can send a notification or URL from my website to user mobile from PC browser for free, just to confirm the user is real?

Stefce 146 Posting Pro

Why not download the table and upload it to other ?

Stefce 146 Posting Pro

Am recomending you to watch the movie "Ex Machina" you'll get more familiar with it :D

rproffitt commented: Also, you are really going to want a secure smart home afterwards. "Would you like some toast?" +12
Stefce 146 Posting Pro

Really Interesting task actually

import java.util.Scanner;

public class Ex02_33 {
    public static void main (String [] args) {

        Scanner input = new Scanner (System.in);

        int weight;
        int height;
        int bMI;

        System.out.print ("Enter Your Weight in Pounds: ");
        weight = input.nextInt();
        System.out.print ("Enter Your Height in Inches: ");
        height = input.nextInt();
        bMI = (weight * 703) / (height * height);
        System.out.printf ("Your Body Mass Index (BMI) is %d\n\n", bMI);

        System.out.println ("BMI VALUES");
        System.out.println ("Underweight: less than 18.5");
        System.out.println ("Normal:      between 18.5 and 24.9");
        System.out.println ("Overweight:  between 25 and 29.9");
        System.out.println ("Obese:       30 or greater");

    }
}

I have found it on internet!

When i was starting programming i was strugling with these problems... i didnt understanded the given task... i hope you will learn something from this code and try to write in your way. Am waiting reply with your own method for this task. Since if you show this code they will know its copied from internet.

ddanbe commented: Ha,ha I would have used 666 instead of 703! +15
Stefce 146 Posting Pro

@Dani

Exactly! You can make two sections in the inbox popup, Inbox & Notifications and putting a nice audio will be huge plus.

EDIT: Even more cool will be to not get redirected to other page to see the netifications list, all from the page you are currently on to be possible to go to your/watched thread.

Stefce 146 Posting Pro

Since am member of this forum am asking my self one question, why am not informed on time when someone reply to my question?

For me the biggest engagement is something which is "LIVE" and i think for all of us is. I think this should be considered as "No. 1 to do list" for this forum.

EDIT: What am saying is, emails are good to inform you when you are off your PC or off site, but live notifications on the website it self are priceless.

  • Thank you and bye
Stefce 146 Posting Pro

I dont have answer, but thumbs UP for Dick hahahaha :D

rproffitt commented: Now google diafol. +0
Stefce 146 Posting Pro

Thank you @diafol i will have fun tonight :P

Stefce 146 Posting Pro

Problem is solved with this solution but i was searching the easier way.

  • Thank you
rproffitt commented: What, no Futurama quote? "Whatever you did, professor, I'm sure there's a reasonable explanation." +12
Stefce 146 Posting Pro

Definitely python the options are endless, machine learning is the future so best choice will be python!

Stefce 146 Posting Pro

If you are updating numbers in your table why you have put the variables in quotes?

$update = "update invoice set reg_no = '$reg_no', cost = '$cost' where i_id = '$update_i_id'";

Stefce 146 Posting Pro

@rubberman yes that would be usefull but i do not want to spy on people.

Stefce 146 Posting Pro

@ByakkoChan theese are way too much expensive also i need arount 1000 - 1500 usb sticks about 200MB size.

Stefce 146 Posting Pro

Oh god it worked :D i have forgoten to put type="button" in the <button> section :D
Thank you very much :)

Stefce 146 Posting Pro

Hello how can i lock a usb drive that the user it will be not able to remove the files that are in also to cant add new ones? I think its very cool for advertising own goals :)

  • Thanks :)
Stefce 146 Posting Pro

Am displaying the images in WordPress Gallery and i cannot see option to change the CSS of the image.

Stefce 146 Posting Pro

Is there a way i can edit the attachment page on wordpress theme i want my picture to be in full size and add some banners at the top am using Bussinesx Front Page Theme

Stefce 146 Posting Pro

I've also been getting a lot of sex spam. I wonder if someone got my email address off a database somewhere ^_^

Hey here you can check it out i have been leaked 3 times O_O
https://hacked-emails.com/

EDIT: also this one too https://haveibeenpwned.com/

cereal commented: yeah, I know about those services ;) +14
Stefce 146 Posting Pro

Ops here we go with something just poped up in my head :D
Since google "hates" forums but loves grammar why not make a grammar corrector in the ask question input field? Something like Grammarly but private that will belong to daniweb. Also i have a question why the input field in the question doesn't autocorrect the word?

Stefce 146 Posting Pro

Can this be made into plugin or something to be used globaly? Because i think it will be game changer on user registrating and it will reduce fake user registration on websites. Even for better security you will ask the user to blink twice to make sure its real human :P

JamesCherrill commented: That's a good idea +15
Stefce 146 Posting Pro

Oh my god... why the server doesn't recognise capital letters ??? the header file actually was named Header and the server was not able to read ?? Hell i waste whole day :-(

rproffitt commented: Thanks for sharing what it was. +11
Stefce 146 Posting Pro

Man i cannot thank you enough.. really appreciated ! Have a great day or night !

gentlemedia commented: Good stuff! +6
Stefce 146 Posting Pro

I have made a huge misstake i have closed connection after getUserData i have commented the $conn->close(); and now works good :D

function getUserData($table, $field) {
        global $conn;
        $DBServer = 'localhost';
        $DBUser   = 'root';
        $DBPass   = '';
        $DBName   = 'upstrey';

        $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName);

        if ($conn->connect_error) {
            die("Connection failed: " . $conn->connect_error);
        }

        $sql = "SELECT `$field` FROM `$table` WHERE `ID`='".$_SESSION['user_id']."'";
        $result = $conn->query($sql);

        if ($result->num_rows > 0) {
            if($row = $result->fetch_assoc()) {
                return $row["$field"];
            }
        }
        //$conn->close();
    }
Stefce 146 Posting Pro

Thank you cereal! Finally realized that i was using wrong $DBServer info :S

Stefce 146 Posting Pro

Hello everyone, first of all i like to say that the new daniweb webdesign is AMAZING i really like it and hope this site it will become number one for programming and if it does please never BAN its users like stackowerflow do but thats other theme.. :D
I have a problem with the change password box this code should work but it doesn't any solutions ?

<!-- CHANGE PASSWORD BOX -->
    <form method="POST" action="navigation.php">
        <div class="modal fade" id="changePassword">
            <div class="modal-dialog modal-md">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                        <h4 class="modal-title">Change Account Password</h4>
                    </div>
                    <div class="modal-body">
                        <p><input type="text" class="form-control" name="oldPass" placeholder="Enter Old Password"/></p>
                        <p><input type="text" class="form-control" name="newPass" placeholder="Enter New Password"/></p>
                    </div>
                    <div class="modal-footer">
                        <input type="submit" class="btn btn-success btn-block" data-dismiss="modal" name="changePass">Change Password</input>
                    </div>
                </div>
            </div>
        </div>
        <?php
        if(isset($_POST['changePass'])) {
            $newPass = $_POST['newPass'];
            $oldPass = $_POST['oldPass'];

            $password = getUserData('users', 'Password');

            if($oldPass != $password) {
        ?>
            <p>Incorrect 'Old Password'</p>
        <?php
            } else if($newPass == $password) {
        ?>
            <p>You must use different password!</p>
        <?php
            } else {
                $user = getUserData('users', 'UserUsername');
                $email = getUserData('users', 'Email');
                $sql = "UPDATE `users` SET `Password`='".$newPass."' WHERE `Email`='".$email."' AND `UserUsername`='".$user."'";
                $return = $conn->query($sql);
        ?>
            <p>Password changed successfully.</p>
        <?php
            }
        }
        ?>
    </form>
Stefce 146 Posting Pro

I'm pretty sure that there is no software for likes because that is illegal by facebook terms and if there is the page will be delited immediately.