Skip to content

Instantly share code, notes, and snippets.

View DonPramis's full-sized avatar

Don Pramis DonPramis

View GitHub Profile
@DonPramis
DonPramis / VkGetLink.user.js
Created November 27, 2018 08:56 — forked from mistificator/VkGetLink.user.js
Script for downloading audio and video files from the vk.com
<?php
public function getNortonSafe($domain)
{
try
{
$callback_url = "https://safeweb.norton.com/report/show?url=" . $domain;
$curl_response = $this->curl->get($callback_url);
@DonPramis
DonPramis / moz.php
Created October 27, 2017 05:05
SEO MOZ RANK and MOZ AUTHORITY
/* Get SEOmoz Data
-------------------------------------------------- */
public function getSeoMoz($domain, $accessid = "", $secret = "")
{
try
{
$access_id = (empty($accessid) ? $_SESSION['SEOMOZ_API_ACCESSID'] : $accessid);
$secret_key = (empty($secret) ? $_SESSION['SEOMOZ_API_SECRETKEY'] : $secret);
$expires = time() + 300;
@DonPramis
DonPramis / stat.php
Created October 24, 2017 21:26
stat.php
<?php
/* Generate Data
-------------------------------------------------- */
generateMenu($smarty);
/* Set Smarty Caching for Domain Stat
-------------------------------------------------- */
if ($config['CACHE_STATUS'] == "ENABLED") {
$smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED);
$smarty->setCacheLifetime($config['STATS_CACHING']);
@DonPramis
DonPramis / process.php
Created October 24, 2017 21:24
process.php
<?php
/* Defining Header Information and Starting Session
-------------------------------------------------- */
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header('Content-type: application/json');
session_start();
/* Including Dependencies
-------------------------------------------------- */
@DonPramis
DonPramis / stats.class.php
Last active October 24, 2017 21:22
stats.class.php (all the social connections/data are not working)
<?php
class stats
{
private $curl;
private $whois;
private $pagerank;
private $dom_doc;
/* Initializing Class Dependent Resources