Jump to content

sagnik

Members
  • Posts

    483
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sagnik

  1. It's not second account. It's my friend wants a start his online classified website and he wants me to develop his website. And why I host my friend's website in my account as the account will belong to my friend.!!!
  2. But the second one is not mine. It's my friend want me to maintain his website because he don't know anything about web design. He wants to create a classified advertisement website and he wants me to develop the website. If he creates an account in heliohost and he gives me his account details to develop and maintain his website, is there any problem?
  3. Sir, my friend wants to host a website in HelioHost. But he don't know anything about web development, so he requested me to operate/maintain his Website. He wants to create a classified website and he wants me to maintain the website as he will take care of advertisements. I'm writing this because, I already have a website in HelioHost named "sgnetworks.cu.cc", and I will maintain the website of my friend as well as my own website "sgnetworks.cu.cc" and I don't want neither my own website "sgnetworks.cu.cc" nor my friend's website to be suspended.
  4. Hi, again got a problem. As the title describing, everything in a function inside a class repeating every value twice. For example, when using 'echo', transferring a value to another function/class. I'm attaching a screenshot of the page. On that page you will see, "HELLO4HELLO4", The two four had transferred from the class-1(where the problem occurs) and printed on the class-2. Class-1 transferring 4 two times to class-2. And also I'm posting the function: function setSession($uid){ session_start(); if(!empty($uid)){ $this->uid_md5 = $uid; if($q=db_query("SELECT uid,uid_md5,username,login_cookie,uid_md5,status,suspended,suspension_reason FROM users WHERE uid_md5='".$this->uid_md5."'",$this->db)){ if(db_num_rows($q)==1){ $r=db_fetch_array($q); $this->uid_md5 = sha1($r['uid_md5']); $this->sessid = sha1($r['uid']).'-'.sha1($this->ip); $this->login_cookie = sha1($r['username']).'-'.sha1($this->ip).'-'.sha1($this->device); if($this->login_cookie == $r['login_cookie']){ if($update=db_query("UPDATE users SET uid_md5='".$this->uid_md5."', autologin='0', login_ip='".$this->ip."',login_device='".$this->device."',login_platform='".$this->platform."',login_browser='".$this->browser."',login_ua='".$this->ua."',login_country='".$this->country."',login_state='".$this->state."',login_location='".$this->city."',login_date='".$this->date."',login_time='".$this->time."',login_timestamp='".$this->timestamp."',login_cookie='".$this->login_cookie."' WHERE uid_md5='".$this->uid_md5."'", $this->db)){ setcookie('uid','',0); $_SESSION['expires'] = time(); $_SESSION['uid'] = $uid; $_SESSION['sessid'] = $this->sessid; if($r['status']==0){ $this->nmi->redirectByRefId(3,'do=confirm'); } elseif($r['status']==1){ $this->nmi->redirectByRefId(2,2); } elseif($r['status']==2){ echo "HELLO"; $this->nmi->redirectByRefId(4); } elseif($r['status']==3){ $this->nmi->redirectByRefId(3,'do=renew'); } elseif($r['status']==4){ $this->nmi->redirectByRefId(3,'do=status'); } elseif($r['status']==5){ $this->nmi->redirectByRefId(3,'do=status'); } } else { echo '<div class="error">Unable to update database</div>'; } } else { setcookie('uid',''); unset($_SESSION['expires']); unset($_SESSION['uid']); unset($_SESSION['sessid']); echo '<div class="error">Your login device was changed. Please login again.</div>'; } } else { echo '<div class="error">Your login details were changed. Please login again: '.$this->uid_md5.'/'.$r['uid_md5'].'</div>'; } } else { echo '<div class="error">Unable to query database</div>'; } } else { echo '<div class="error">UID cannot be left empty</div>'; } } Take a look at the screenshot:
  5. Ok, let me try... Ok, I've changed the CNAME record for "www.netmate.cu.cc" from "www.netmate.cu.cc.cdn.cloudflare.net" to "netmate.cu.cc"
  6. Yeah... I've did it.. Thanks for your help..
  7. But now I've changed the nameservers to HelioHost. So why I'm still getting a blank page?
  8. Ok, I'll do it right now... Done. I've changed the nameservers.
  9. No, it doesn't...
  10. Thanks, it helped me a lot.
  11. Sir, I've just tried to disable the www CNAME record from CloudFlare, but no change. I'm still getting the blank page when visiting the site "http://www.netmate.cu.cc". The "www" automatically prepends to "netmate.cu.cc" when I'm typing "netmate.cu.cc".
  12. Ohh, I didn't knew that.. Well if not browscap, then is there any PHP library which can provide all of this??? I've searched Google, but didn't find anything...
  13. But, $_SERVER doesn't provide user's device & platform details easily, I've to do too much coding to extract the details from $_SERVER['HTTP_USER_AGENT'].
  14. Ok, I'll try it...
  15. Hello sir, I'm trying to setup cloudflare with my domain. I think everything is working fine but when I visit the site with www, "http://www.Netmate.cu.cc", I'm getting "ERROR 1000", anyone please guide me to setup cloudflare?? Ok, solve it. I've just updated the nameservers from my domain registrar and the problem was solved. But why the www subdomain is giving a blank page?
  16. Ok, I'll do that. Thanks for your help.
  17. Ok thanks, I've followed you. Browscap provides the details of user's browser, device & platform. In fact, the name, version,build manufacturer of the browser and platform/os and name, model, date of manufacture, etc of device which is the user using. full_php_browscap.ini takes around 55.56MB size. Browscap need to be set as a directive in php.ini, like, [browscap] browscap = "C:\php\extras\full_php_browscap.ini" If you add full_php_browscap.ini directive, it will be a great help, because I have used it in my registration and login page. If it cannot be added, then I have to change my whole registration and login related files.
  18. If I set a variable with the path in my config file then also I've to include the config file like you explained: <?php require_once('/home/sgn/public_html/nm/public_html/mobile/global/header.php'); ?> So what will be the advantage of storing the value to a variable?? And what about browscap? Can I use browscap? If yes then how? If not then, what is an alternative of browscap?
  19. I've 3 domains which can access the folder "mobile". Roots for the domains will be different so the path to reach the folder "mobile" from different domains will be different. Document Roots for the domains are: "sgnetworks.cu.cc": "/home/sgn/public_html", "netmate.cu.cc": "/home/sgn/public_html/nm/public_html", "m.netmate.cu.cc": "/home/sgn/public_html/nm/public_html/mobile". So I've to use this block of code to include header and footer: <?php if($_SERVER['DOCUMENT_ROOT'] == "/home/sgn/public_html/nm/public_html/mobile"){ $docRoot = $_SERVER['DOCUMENT_ROOT']; } else if($_SERVER['DOCUMENT_ROOT'] == "/home/sgn/public_html/nm/public_html"){ $docRoot = $_SERVER['DOCUMENT_ROOT']."/mobile"; } else if($_SERVER['DOCUMENT_ROOT'] == "/home/sgn/public_html"){ $docRoot = $_SERVER['DOCUMENT_ROOT']."/nm/public_html/mobile"; } require_once $docRoot."/global/header.php"; ?>
  20. I've did it. I've automatically included header.php and footer.php using php.ini directive "auto_prepend_file" & "auto_append_file" in localhost with HTTPD. Now my question is can I do it in HelioHost in anyhow? Like using .htaccess, php.user.ini or any other things. And one more thing, I need to use "browscap", can you please add "full_php_browscap.ini" in the php.ini or allow me to do so by any method?
  21. I actually installed PhpMyAdmin from Softaculous, but it also not working. Still showing maximum 2,048 kib.
  22. Thank you sir, I was actually planning to buy a domain but I thought after the Website is completely ready then I will buy a domain. But can I use the domain from freenom.com?
  23. Ok, I'll do it. And why my site is blacklisted? Is for the domain (.cu.cc) or any other things?
  24. I don't want to do that, because if I do that, if anytime I need to delete any rows then it will not be possible. That's why I don't want to change the database.
×
×
  • Create New...