Ignore:
Timestamp:
Apr 29, 2012, 5:04:37 PM (12 years ago)
Author:
mistic100
Message:

update for 2.4
deactivated for smartpocket, now compatible with simple and stripped on ContactForm
live update of preview on admin page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/maintain.inc.php

    r12617 r14527  
    11<?php
    2 define('default_config', serialize(array(
     2define('crypto_default_config', serialize(array(
    33  'comments_action' => 'reject',
    44  'theme'           => 'gray',
     
    2424  if (!isset($conf['cryptographp']))
    2525  {
    26     pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.default_config.'\',"CryptograPHP config");');
     26    pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.crypto_default_config.'\',"CryptograPHP config");');
    2727  }
    2828}
     
    3434  if (isset($conf['cryptograph_theme']))
    3535  {
    36     pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp_theme" LIMIT 1');
     36    pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="cryptographp_theme" LIMIT 1;');
    3737  }
    3838 
    39   if (!isset($conf['cryptograph']))
     39  if (!isset($conf['cryptographp']))
    4040  {
    41     pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.default_config.'\',"CryptograPHP config");');
     41    pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("cryptographp",\''.crypto_default_config.'\',"CryptograPHP config");');
    4242  }
    4343}
     44
    4445function plugin_uninstall()
    4546{
Note: See TracChangeset for help on using the changeset viewer.