Jump to content

sagnik

Members
  • Posts

    484
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by sagnik

  1. To prevent your account to be suspended due to inactivity, you must have to login to your account at least once in a month through https://www.heliohost.org/login staying logged in from cpanel.yourdomain.com is not enough. I don't know why your account had suspended, but if your account was suspended due to inactivity then you can renew your account from https://www.heliohost.org/renew. Otherwise, the heliohost admins will definitely solve your problem.

     

    Secondly, if you've been forced to be logged out from cpanel, it may be because your external ip gets changed. You can view your IP at, http://www.whatsmyip.org/.

  2.  

    <?php
        $headers .= 'Cc: noreply@maicol07.tk\r\n';	//<-- his code
        $headers .= 'Cc: noreply@maicol07.tk' . "\r\n";	//<-- correct way???
    ?>
    
    Are you sure the last added header can't contain a line break string??

     

    Please take a look at example #3 : https://www.w3schools.com/php/func_mail_mail.asp .

     

     

    @jotace

    Yes, the last line also contain a line-break like you did but he had merged the line-break with the header inside the quotation mark so it didn't worked. As it was the last line of his mail headers block, I've removed the line-break. And may beis another reason, the emails he used in the 'from' & 'cc' header it has not configured correctly so the email couldn't send.

  3. I can't understand, why is developers console saying "Resource interpreted as stylesheet but transferred with MIME type text/html".

    Here is how it should look (Without HTTPS):

    dTpNvzF.png

     

    Sir, I think, I've identified the problem. The problem is in .htaccess. I've redirected all requests to some directories to the index.php, that's why the Stylesheets loading as html as the request redirects to the index.php instead of "/global/styles.css" as access to the "/global/" directory redirects to "/index.php". But I still need help. I want .htaccess to redirect all requests to the specific directories to "/index.php". In fact, I want to show a forbidden page to those directories but instead of showing a forbidden page I want to redirect the user to the index.php. But not like one how it's working now, I want to redirect when user types in address bar.

  4. In your case, I don't think, HelioHost Administrators will allow you to operate two accounts. I've already tried to let them understand but they didn't. But I understand that, giving access to more than one accounts violates HelioHost's Terms & Conditions as well as being a free hosting service provider HelioHost is very limited to provide services to more than one accounts of the same person, so I've asked HelioHost Administrators to delete my both accounts and I've made a donation & signed up for a Tommy Account and hosted 3 websites as addon domains. You can also use your 2 account as addon domains.

  5. Here is the code (The problem was the new line string):

    With Mail() class:
    <?php
    /**
     * Created by PhpStorm.
     * User: Maicol
     * Date: 17/09/2017
     * Time: 20:49
     */
    /*$post_name=$_POST["name"];
    $post_email=$_POST["email"];
    $post_message=$_POST["message"];
    if($post_name){
        $to = "maicolbattistini@live.it";
        $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
        $subject = "Request from 'About Me' Page";
        $message = "
    		<html>
    		<head>
    		<title>Request from 'About Me' page</title>
    		</head>
    		<body>
    		<p>You have received a request from your personal webpage:</p>
    		<table>
    		<tr>
    		<th>Name</th>
    		<th>Email</th>
    		<th>Message</th>
    		</tr>
    		<tr>
    		<td>".$post_name."</td>
    		<td>".$post_email."</td>
    		<td>".$post_message."</td>
    		</tr>
    		</table>
    		</body>
    		</html>
    	";
    	// Always set content-type when sending HTML email
        $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    	// More headers
        $headers .= 'From: <noreply@maicol07.tk>'.'\r\n';
        $headers .= 'Cc: noreply@maicol07.tk';
        $mail = new Mail();
        $mail->setFrom(SITEEMAIL);
        $mail->addAddress($to);
        $mail->subject($subject);
        $mail->body($body);
    	if ($mail->send()) {
    		echo "<script>
    				alert('Email successfully sent!')
    				</script>";
    	} else {
    		echo "<script>
    				alert('Email not sent! Please contact the administrator')</script>";
    	}
    	//echo "<script> location.href = 'index.php'; </script>";
    } else {
    	echo "FAIL-1";
    }*/
    ?>
    With PHP mail() function:
    <?php
    /**
     * Created by PhpStorm.
     * User: Maicol
     * Date: 17/09/2017
     * Time: 20:49
     */
    $post_name=$_POST["name"];
    $post_email=$_POST["email"];
    $post_message=$_POST["message"];
    if($post_name){
        $to = "sagnikganguly@whatsnew.in";
        $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    	//$lang="EN";
        $subject = "Request from 'About Me' Page";
        $message = "
    		<html>
    		<head>
    		<title>Request from 'About Me' page</title>
    		</head>
    		<body>
    		<p>You have received a request from your personal webpage:</p>
    		<table>
    		<tr>
    		<th>Name</th>
    		<th>Email</th>
    		<th>Message</th>
    		</tr>
    		<tr>
    		<td>".$post_name."</td>
    		<td>".$post_email."</td>
    		<td>".$post_message."</td>
    		</tr>
    		</table>
    		</body>
    		</html>
    	";
    	// Always set content-type when sending HTML email
        $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    	// More headers
        $headers .= 'From: <noreply@maicol07.tk>'."\r\n";
        $headers .= 'Cc: noreply@maicol07.tk'; //<--HERE WAS THE PROBLEM
    	if(mail($to, $subject, $message, $headers)) {
    		echo "<script>
    				alert('Email successfully sent!')
    			</script>";
    	} else {
            echo "<script>
    				alert('Email not sent! Please contact the administrator');
    			</script>";
    	}
    	echo "<script> location.href = 'index.php'; </script>";
    } else {
    	echo "FAIL-2";
    }
    ?>
    
    Here is the received email screenshot:

    Yr3kbom.png

  6. I'm glad that, I could help you. Yeah that's a great idea. It will solve the problems with donations. As I've already said, everyone can't get/afford a credit card. So, everyone can't make a donation as their card is not supported. So anyone, who want to make a donation, they could just use their local Debit Card to purchase a VISA/MasterCard gift card and use that card to make the donation. It's a very good idea.

  7. Well, if the feature is temporarily discontinued and if you are planning to bring that feature back then please implement Debit Card feature as well. Because everyone can't get/afford a Credit card due the restrictions of their banks.

  8. SyntaxError: missing } after property list[Learn More] nd2toast.js:21:6

     

    Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] register.php

    Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end users experience. For more help http://xhr.spec.whatwg.org/ jquery-1.12.4.min.js:4:26272

     

    Error: Syntax error, unrecognized expression: unsupported pseudo: option jquery-1.12.4.min.js:2:12733

     

    The problem is solved.

    The problem was a ":".

    var dob=$("#dob #date:option:selected").val()+"-"+$("#dob #month:option:selected").val()+"-"+$("#dob #year:option:selected").val();

     

    The option is a child of select elements,

    var dob=$("#dob #date option:selected").val()+"-"+$("#dob #month option:selected").val()+"-"+$("#dob #year option:selected").val();

  9. Let me check

     

    Sir I had already searched about the problem on Google, but I couldn't find any solution, so I've created a topic in Helionet. But as you suggested, I've re-checked the link you have provided but I couldn't find anything.

     

    Sir, I've just altered some line of the error block. I've added a alert("TEST") before the variable "dob" and then when I've clicked the Next button the alert dialog had shown but when I've removed the alert("TEST") from that line and added it after the variable "dob", then I've clicked the Next button the alert dialog had not shown. And even when I've removed the "dob" variable from the ajax data string and added a simple text "TEST", it worked. So I think the ajax is working fine, the problem is with the "dob" variable. But what could be the problem?

×
×
  • Create New...