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 | |
define('_PS_ROOT_DIR_', '/path/to/prestashop/root'); | |
define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.'admin_folder'); | |
require(_PS_ADMIN_DIR_.'/../config/config.inc.php'); | |
require(_PS_ADMIN_DIR_.'/functions.php'); | |
class Employee2 extends EmployeeCore | |
{ | |
public function isSuperAdmin() |
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/bash | |
url=http://redefininggod.com | |
webarchive=https://web.archive.org | |
wget="wget -e robots=off -nv" | |
tab="$(printf '\t')" | |
additional_url=url.list | |
# Construct listing.txt from url.list | |
# The list of archived pages, including some wildcard url |
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 | |
require('includes/application_top.php'); | |
// Output headers so that the file is downloaded rather than displayed | |
header('Content-Type: text/csv; charset=utf-8'); | |
header('Content-Disposition: attachment; filename=data.csv'); | |
// Create a file pointer connected to the output stream | |
$output = fopen('php://output', 'w'); |
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 | |
/** | |
* Import a CSV tweet list | |
* | |
* Import tweets from an archive as generated by Twitter | |
* | |
* Usage : | |
* - Import your tweets with the plugin. The plugin will import only the 3200 most recent tweets. | |
* - Download your archive from Twitter, open the tweets.csv file (delete first 3200 most recent tweets to speed up things) | |
* - put this script and tweets.csv in WordPress' root directory (where wp-load.php is) |