[Request] Responsive Apartment Management System (codecanyon)

ashish thaker

Active member
May 2, 2019
200
31
43
was on localhost. unfortunately I was not successful, I will try to go up to my server, if I give some warning to the friend for you to take a look!

Thank you since already
what error are you getting on localhost,

can you describe please?
 

jagc3763

New member
Apr 30, 2019
10
1
3
what error are you getting on localhost,

can you describe please?
I did successful installed the script, but if the localhost has internet connection, the login screen it always will pop up... If the localhost isn't connected to internet, the script works flawlessly!

I did follow all the instructions provided obove... So no probs there...
 

ashish thaker

Active member
May 2, 2019
200
31
43
I did successful installed the script, but if the localhost has internet connection, the login screen it always will pop up... If the localhost isn't connected to internet, the script works flawlessly!

I did follow all the instructions provided obove... So no probs there...
i didn't get you which screen popups ?

kindly share more about the issue please.
 

hugo_luis

Member
May 10, 2020
120
13
18
friend there is no .sql file downloaded for installation, but it is purchased and discovered by a database and I changed the file, but it is the data in the database that are not correct, but are 100% correct!
 

hugo_luis

Member
May 10, 2020
120
13
18
I did successful installed the script, but if the localhost has internet connection, the login screen it always will pop up... If the localhost isn't connected to internet, the script works flawlessly!

I did follow all the instructions provided obove... So no probs there...

If the friend could share, the script that is working would be grateful, then he would share the database and files, because mine always asks for the key, and when I downloaded others, it does not configure at all correctly !!!
 

mrlokoni

New member
Mar 2, 2020
21
2
3
I did successful installed the script, but if the localhost has internet connection, the login screen it always will pop up... If the localhost isn't connected to internet, the script works flawlessly!

I did follow all the instructions provided obove... So no probs there...

i got the same problem, did you solve it?
 

difli

Member
Banned User
Apr 24, 2020
52
7
8
hi, anyone have de the, i cant pass the begin, please help
best regards
 

monyancha254

New member
Aug 12, 2020
7
4
3
Someone please solve the issue here. It keeps login out after you login. Please share back the solved script. Thank you
Responsive Apartment Management System

Actually i have solved the issue. After installation go to ajax folder and open maxPower.php then comment out the following code: include("../library/maxPower.php");
PHP:
<?php
    session_start();
    include("../config.php");
    //To-Do *Comment out the line below to solve the problem*
    //include("../library/maxPower.php");
    $json = array();
    if(isset($_SESSION['objLogin'])){
        if(isset($_POST['token']) && $_POST['token'] == 'validateDomainName'){
            if(verifyItemPeriod($link)){
                $result = mysqli_query($link, "select * from tbl_max_power");
                if($row = mysqli_fetch_array($result)){
                    $data = maxPower::verifyPurchasedCode($row);
                    if($data['code']=='200'){
                        if(trim($data['domain'], '/') == trim(WEB_URL, '/')){
                            $json = array('action'=>'continue', 'url'=>WEB_URL);
                            updateCheckingDateTime($link);
                        } else {
                            dropDatabase($link, DB_DATABASE);
                            $json = array('action'=>'logout', 'url'=>WEB_URL);
                        }
                    } else if($data['code']=='203' || $data['code']=='204'){ //wrong purchased code and wrong item id
                        removeDatabaseMaxPower($link);
                        $json = array('action'=>'logout', 'url'=>WEB_URL);
                    }
                } else {
                    $json = array('action'=>'logout', 'url'=>WEB_URL);
                }
            } else {
                $json = array('action'=>'continue', 'url'=>WEB_URL);
            }
        } else {
            $json = array('action'=>'logout', 'url'=>WEB_URL);
        }
    } else {
        $json = array('action'=>'continue', 'url'=>WEB_URL);
    }
    echo json_encode($json);
    die();
    
    function removeDatabaseMaxPower($link){
        //mysqli_query($link, "DELETE FROM tbl_max_power");
    }
    
    function dropDatabase($link, $db){
        //mysqli_query($link, "DROP DATABASE ".$db);
    }
    
    function updateCheckingDateTime($link) {
        mysqli_query($link, "update tbl_max_power set last_check_date='".date("Y-m-d h:i:s")."'");
    }
    
    function checkDomainNameStatus($link, $weburl, $close=false){
        $result = mysqli_query($link, "select * from tbl_max_power");
        if($row = mysqli_fetch_array($result)){
            if(trim($row['website_url'], '/') == trim($weburl, '/')){
                return true;
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
    
    function verifyItemPeriod($link){
        $result = mysqli_query($link, "select * from tbl_max_power");
        if($row = mysqli_fetch_array($result)){
            if(!empty($row['last_check_date'])){
                $now = strtotime(date('Y-m-d H:i:s'));
                $check_time = strtotime($row['last_check_date']);
                $datediff =  $now - $check_time;
                $days = round($datediff / (60 * 60 * 24));
                if((int)$days > 7){
                    return true;
                } else {
                    return false;
                }
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
    
    
    
?>
 
  • Like
Reactions: cnrsbtogll

cnrsbtogll

Member
Apr 9, 2020
34
4
8
[QUOTE = "Toki, gönderi: 245119, üye: 538"]
SQL dosyası yok.
Bunun yeniden doldurulması veya geçersiz kılınması gerekiyor
[/ ALINTI]
 

Attachments

  • ams.zip
    6.4 KB · Views: 38
  • Like
Reactions: monyancha254

cnrsbtogll

Member
Apr 9, 2020
34
4
8
Actually i have solved the issue. After installation go to ajax folder and open maxPower.php then comment out the following code: include("../library/maxPower.php");
PHP:
<?php
    session_start();
    include("../config.php");
    //To-Do *Comment out the line below to solve the problem*
    //include("../library/maxPower.php");
    $json = array();
    if(isset($_SESSION['objLogin'])){
        if(isset($_POST['token']) && $_POST['token'] == 'validateDomainName'){
            if(verifyItemPeriod($link)){
                $result = mysqli_query($link, "select * from tbl_max_power");
                if($row = mysqli_fetch_array($result)){
                    $data = maxPower::verifyPurchasedCode($row);
                    if($data['code']=='200'){
                        if(trim($data['domain'], '/') == trim(WEB_URL, '/')){
                            $json = array('action'=>'continue', 'url'=>WEB_URL);
                            updateCheckingDateTime($link);
                        } else {
                            dropDatabase($link, DB_DATABASE);
                            $json = array('action'=>'logout', 'url'=>WEB_URL);
                        }
                    } else if($data['code']=='203' || $data['code']=='204'){ //wrong purchased code and wrong item id
                        removeDatabaseMaxPower($link);
                        $json = array('action'=>'logout', 'url'=>WEB_URL);
                    }
                } else {
                    $json = array('action'=>'logout', 'url'=>WEB_URL);
                }
            } else {
                $json = array('action'=>'continue', 'url'=>WEB_URL);
            }
        } else {
            $json = array('action'=>'logout', 'url'=>WEB_URL);
        }
    } else {
        $json = array('action'=>'continue', 'url'=>WEB_URL);
    }
    echo json_encode($json);
    die();

    function removeDatabaseMaxPower($link){
        //mysqli_query($link, "DELETE FROM tbl_max_power");
    }

    function dropDatabase($link, $db){
        //mysqli_query($link, "DROP DATABASE ".$db);
    }

    function updateCheckingDateTime($link) {
        mysqli_query($link, "update tbl_max_power set last_check_date='".date("Y-m-d h:i:s")."'");
    }

    function checkDomainNameStatus($link, $weburl, $close=false){
        $result = mysqli_query($link, "select * from tbl_max_power");
        if($row = mysqli_fetch_array($result)){
            if(trim($row['website_url'], '/') == trim($weburl, '/')){
                return true;
            } else {
                return false;
            }
        } else {
            return false;
        }
    }

    function verifyItemPeriod($link){
        $result = mysqli_query($link, "select * from tbl_max_power");
        if($row = mysqli_fetch_array($result)){
            if(!empty($row['last_check_date'])){
                $now = strtotime(date('Y-m-d H:i:s'));
                $check_time = strtotime($row['last_check_date']);
                $datediff =  $now - $check_time;
                $days = round($datediff / (60 * 60 * 24));
                if((int)$days > 7){
                    return true;
                } else {
                    return false;
                }
            } else {
                return false;
            }
        } else {
            return false;
        }
    }



?>

@ashish thaker, @jagc3763 How should I configure the config.php file to install the hosting on the live server.

data is not coming

Screenshot_12.jpg
 
Last edited:

monyancha254

New member
Aug 12, 2020
7
4
3
How should I configure the config.php file to install the hosting on the live server.

data is not coming

Screenshot_12.jpg

To solve that issue, set your root location of your project correctly on the config.php file. Check the example below.
PHP:
<?php
define('_AMSCODESECURITY', '16343942');
define('CURRENCY', '$');
define('WEB_URL', 'https://apartments.com/');
//Set the root path correctly to be able to display data on front-end
define('ROOT_PATH', '/home/projho/apartments.com/');


define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'sasasof');
define('DB_PASSWORD', 'sasa');
define('DB_DATABASE', 'apartment');
$link = new mysqli(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD,DB_DATABASE);?>
 
  • Like
Reactions: cnrsbtogll

cnrsbtogll

Member
Apr 9, 2020
34
4
8
To solve that issue, set your root location of your project correctly on the config.php file. Check the example below.
PHP:
<?php
define('_AMSCODESECURITY', '16343942');
define('CURRENCY', '$');
define('WEB_URL', 'https://apartments.com/');
//Set the root path correctly to be able to display data on front-end
define('ROOT_PATH', '/home/projho/apartments.com/');


define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'sasasof');
define('DB_PASSWORD', 'sasa');
define('DB_DATABASE', 'apartment');
$link = new mysqli(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD,DB_DATABASE);?>

Thank you buddy. I will try?
 

cnrsbtogll

Member
Apr 9, 2020
34
4
8
To solve that issue, set your root location of your project correctly on the config.php file. Check the example below.
PHP:
<?php
define('_AMSCODESECURITY', '16343942');
define('CURRENCY', '$');
define('WEB_URL', 'https://apartments.com/');
//Set the root path correctly to be able to display data on front-end
define('ROOT_PATH', '/home/projho/apartments.com/');


define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'sasasof');
define('DB_PASSWORD', 'sasa');
define('DB_DATABASE', 'apartment');
$link = new mysqli(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD,DB_DATABASE);?>


on my hosting -> ajax/maxPower.php

Screenshot_13.jpg

I fixed it as you said in my config.php file but the result:

Screenshot_14.jpg
 

cnrsbtogll

Member
Apr 9, 2020
34
4
8
If you have set your database connections well then you can try clear your browsing data and check again.
Mine is working perfectly here.

If you have set your database connections well -> yes ı did it
you can try clear your browsing data and check again -> yes ı did it but not working.

can you help me? on anydesk?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu