Plugin Directory

Changeset 728976


Ignore:
Timestamp:
06/20/2013 06:36:35 PM (13 years ago)
Author:
atvdev
Message:

form is_active, todos

Location:
amazon-s3-uploads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • amazon-s3-uploads/trunk/asssu.php

    r728448 r728976  
    1414register_activation_hook(__FILE__, 'activation_hook');
    1515function activation_hook() {
    16    
     16    global $asssu;
     17    $asssu->activation_hook();
    1718}
    1819
  • amazon-s3-uploads/trunk/plugin/asssu/__init.php

    r728962 r728976  
    22
    33namespace asssu;
     4
     5//////////////////////////////////////////////////////////////////////////////
     6// check
     7# ta html pou anevenoun emfanizontai san txt
    48
    59//////////////////////////////////////////////////////////////////////////////
     
    1014# upgrade
    1115# dokimi buckets se ola ta locations
     16
     17//////////////////////////////////////////////////////////////////////////////
     18// todos
     19# checks sto activation gia ta requirements
     20# na paiksei to bjork
     21#   na stelnei bjork mail
     22#   na fiakso ta views
     23# na kano minify ta lib
     24# na paizei sto nginx
     25
     26//////////////////////////////////////////////////////////////////////////////
     27// unresolved
     28# na anevazei me ti mia sto s3
     29# an yparxei idi to arxeo pano na rotai ton xristi ti na kanei
     30# na ginei kati me ta +
     31
     32//////////////////////////////////////////////////////////////////////////////
     33// pro
     34# iam
     35# cron time, file limit
     36# cache
     37# ms
     38# dirs
     39# excludes
    1240
    1341class Asssu {
     
    107135        return '1.9.1';
    108136    }
     137   
     138    // function upgrade_1_9_1() {
     139    //     $this->config['version'] = '1.9.2';
     140    //     $this->db->save_config();
     141    //     return $this->config['version'];
     142    // }
    109143
    110144    function convert_to_s3_path($path, $stream_wrapper_format=true) {
     
    127161                $result = $client->getCommand('getBucketVersioning')->set('Bucket', $this->config['bucket_name'])->getResult();
    128162            } catch (\Exception $e) {
     163                exit('a');
    129164                $this->config['is_active'] = false;
    130165                $this->db->save_config();
     
    160195            file_put_contents($htaccess_file, $htaccess_contents);
    161196        return true;
     197    }
     198   
     199    function activation_hook() {
     200       
    162201    }
    163202   
  • amazon-s3-uploads/trunk/plugin/asssu/forms.php

    r728966 r728976  
    1616                $options = array();
    1717            $options['initial'] = $this->asssu->config;
     18            unset($options['initial']['is_active']);
    1819        }
    1920        parent::__construct($data, $files, $options);
Note: See TracChangeset for help on using the changeset viewer.