Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Jun 15, 2011
0 parents commit 7dd6da3
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
27 changes: 27 additions & 0 deletions LICENCE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
All source code included in the "Configuration Settings" Symphony Extension
archive is, unless otherwise specified, released under the MIT licence as
follows:

----- begin license block -----

Copyright 2011 Solutions Nitriques

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

----- end license block -----
8 changes: 8 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Real simple extension to Symphony CMS

1- Just unzip and put in extension dir
2- Name the folder *force_domain_name*
3- Enable just like any other ext
4- Go into the settings to set the domain name you wanna use

Voila !
63 changes: 63 additions & 0 deletions extension.driver.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

if(!defined("__IN_SYMPHONY__")) die("<h2>Error</h2><p>You cannot directly access this file</p>");

/*
Copyight: Solutions Nitriques 2011
License: MIT
*/
class extension_force_domain_name extends Extension {

public function about() {
return array(
'name' => 'Force Domain Name',
'version' => '1.0',
'release-date' => '2011-06-15',
'author' => array(
'name' => 'Solutions Nitriques',
'website' => 'http://www.nitriques.com/',
'email' => 'nico@nitriques.com'
),
'description' => 'Really simple ext that force user to a specified domain name',
'compatibility' => array(
'2.2.1' => true,
'2.2' => true
)
);
}

public function getSubscribedDelegates(){
return array(
array(
'page' => '/frontend/',
'delegate' => 'FrontendPrePageResolve',
'callback' => 'frontendPrePageResolve'
),
array(
'page' => '/system/preferences/',
'delegate' => 'AddCustomPreferenceFieldsets',
'callback' => 'addCustomPreferenceFieldsets'
),
array(
'page' => '/system/preferences/',
'delegate' => 'Save',
'callback' => 'save'
),
);
}

public function frontendPrePageResolve($page='/frontend/', $context) {

}

public function addCustomPreferenceFieldsets($page='/system/preferences/', $context) {

}

public function save($page='/system/preferences/', $context){

}

}

?>

0 comments on commit 7dd6da3

Please sign in to comment.