-
Posts
483 -
Joined
-
Last visited
-
Days Won
1
Everything posted by sagnik
-
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.!!!
-
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?
-
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.
-
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:
-
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"
-
[Solved] Phpmyadmin Maximum File Size Exceeds
sagnik replied to sagnik's topic in Escalated Requests
Yeah... I've did it.. Thanks for your help.. -
But now I've changed the nameservers to HelioHost. So why I'm still getting a blank page?
-
Ok, I'll do it right now... Done. I've changed the nameservers.
-
No, it doesn't...
-
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
Thanks, it helped me a lot. -
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".
-
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
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... -
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
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']. -
Ok, I'll try it...
-
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?
-
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
Ok, I'll do that. Thanks for your help. -
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
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. -
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
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? -
Php Auto Include Page Header And Footer
sagnik replied to sagnik's topic in Website Management and Coding
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"; ?> -
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?
-
[Solved] Phpmyadmin Maximum File Size Exceeds
sagnik replied to sagnik's topic in Escalated Requests
I actually installed PhpMyAdmin from Softaculous, but it also not working. Still showing maximum 2,048 kib.