Check Status of file permissions
Change Owner of File/Folder
Check Status of all services
Run Apache
/** | |
* Fetch Bani API | |
*/ | |
const pathWrapper = document.getElementById('path'), | |
audio = document.getElementById('audio'), | |
previousLink = document.getElementById('prevBtn'), | |
nextLink = document.getElementById('nextBtn'), | |
loading = document.querySelector('.loading'), | |
urlSearchParams = new URLSearchParams(window.location.search), | |
pauriIndex = parseInt(urlSearchParams.get('i')), |
import React from "react"; | |
import classNames from "classnames"; | |
import A from "@styleguide/components/a"; | |
import { IconBuilding, IconMessage, IconPhone } from "@icons/index"; | |
import css from "./index.scss"; | |
import { CONTACT_US_EMAIL, CONTACT_US_PHONE_NUMBER } from "@lib/staticRoutes"; | |
import { |
import React from "react"; | |
import PageLayout from "@page-components/page-layout"; | |
import ContactUsFormClipart from "@svg-resources/contact-us-form-clipart"; | |
import ContactForm from "./contact-form"; | |
import ContactDetails from "./contact-details"; | |
import css from "./index.scss"; | |
const ContactUs = () => { | |
return ( |
import React from "react"; | |
import { useFormik } from "formik"; | |
import * as Yup from "yup"; | |
import axios from "axios"; | |
import classNames from "classnames"; | |
import Button from "@styleguide/components/button"; | |
import Input from "@styleguide/components/input"; | |
import css from "./index.scss"; |
'use strict'; | |
exports.handler = async (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
headers['Strict-Transport-Security'] = [{ | |
key: 'Strict-Transport-Security', | |
value: 'max-age=63072000; includeSubDomains; preload', | |
}]; |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
function sponsor_pagination($pages = '', $range = 4) | |
{ | |
$showitems = ($range * 2)+1; | |
global $paged; | |
if(empty($paged)) $paged = 1; | |
if($pages == '') | |
{ | |
global $wp_query; |
/*****************/ | |
//@TODO Update Omnisend separately with list id | |
/*****************/ | |
// An object of options to indicate where to post to | |
var options = { | |
"method": "POST", | |
"protocol": 'https:', | |
"hostname": 'api.omnisend.com', | |
"path": '/v3/contacts', |
let $photoInput = document.getElementById("input"); | |
let fileReader = new FileReader(); | |
let image = new Image(); | |
let $editor = document.getElementById("editor"); | |
let $editorCtx = $editor.getContext("2d"); | |
//This is a performance test | |
function opacitor(op) { | |
let imgData = $editorCtx.getImageData(0, 0, $editor.width, $editor.height); | |
for (let x = 0; x < image.width; x++) { |