Skip to content

Instantly share code, notes, and snippets.

View alexmglover's full-sized avatar

Alex Glover alexmglover

View GitHub Profile
<?php
public function cartthrob_pre_process($options)
{
if (isset($_FILES)) {
// load the libraries and models
ee()->load->model('file_upload_preferences_model');
// get upload preferences
$uploadPrefs = ee()->file_upload_preferences_model->get_file_upload_preferences(null, 2);
@alexmglover
alexmglover / ee2_permissions.sh
Created January 25, 2012 14:36 — forked from shapeshed/ee2_permissions.sh
Sets permissions on an ExpressionEngine 2 install
#!/bin/bash
# File: exp_permissions.sh
# Description: Sets permssions on a ExpressionEngine 2 install
#
# Copyright 2010 George Ornbo (Shape Shed)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#