This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@header('X-Robots-Tag: "none, noindex, nofollow, noarchive, nosnippet, noodp, notranslate, noimageindex"'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SAMPLE AMEMBER STUFF */ | |
<?php | |
session_start(); | |
// is user logged in? | |
$user = $_SESSION['_amember_user']; | |
if ($user['member_id'] > 0){ | |
print "Hello $user[name_f] $user[name_l]<br>\n"; | |
$need_one_from = array(3); | |
if (array_intersect($need_one_from, $_SESSION['_amember_product_ids'])){ | |
// they're good. keep loading. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Am_Di::getInstance()->front->registerPlugin(new class extends Zend_Controller_Plugin_Abstract { | |
public function preDispatch(Zend_Controller_Request_Abstract $request) | |
{ | |
if ($request->getModuleName() == 'default' && | |
$request->getControllerName() == 'member' && | |
$request->getActionName() == 'payment-history') { | |
$di = Am_DI::getInstance(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# cPanel ClamAV Cron Job | |
for i in `awk '!/nobody/{print $2 | "sort | uniq"}' /etc/userdomains | sort | uniq`; do | |
SUBJECT="cPanel ClamAV scan report for account ${i}" | |
DIRTOSCAN=$(getent passwd ${i} | cut -d: -f6) | |
# Log location |