Pannous

Pannous Commit Details

Date:2018-04-25 20:14:26 (2 years 3 months ago)
Author:Grégory Soutadé
Branch:master
Commit:2c71285a151b5815863f838e890cebdc222859b8
Parents: e4ac19d9881eeaac4d9c09e0556648f41693fb88
Message:Display generated code for subscribe/unsubscribe mailto links

Changes:
Mfuel/app/classes/controller/lists.php (1 diff)
Mfuel/app/config/config.php (1 diff)
Mfuel/app/config/db.php (1 diff)
Mfuel/app/config/pannous.php (1 diff)
Mfuel/app/config/simpleauth.php (1 diff)
Mfuel/app/views/lists.php (1 diff)

File differences

fuel/app/classes/controller/lists.php
305305
306306
307307
308
308309
309310
310311
$this->load_readers_and_writers($form, $target_list);
$data["lists"] = Model_Lists::find('all');
$data["target_list"] = $target_list;
$form->add('submit', '', array('type' => 'submit', 'value' => 'Edit'));
$form->field('friend_name')->set_attribute(array('onkeyup' => 'friend_name_change();', 'onchange' => 'friend_name_change();'));
fuel/app/config/config.php
123123
124124
125125
126
126
127127
128128
129129
/**
* A salt to make sure the generated security tokens are not predictable
*/
'token_salt' => 'YOUR_SALT',
'token_salt' => '=ViW7T||>*8K045(_}}6EKYp8Y!xbMe^s',
/**
* Allow the Input class to use X headers when present
fuel/app/config/db.php
1010
1111
1212
13
13
1414
1515
1616
'connection' => array(
'dsn' => 'mysql:host=localhost;dbname=pannous',
'username' => 'pannous',
'password' => 'YOUR_PASSWORD',
'password' => '3jm6w!2(O4_H37v',
),
),
);
fuel/app/config/pannous.php
33
44
55
6
6
77
88
99
/* Main mail account */
'mail_server' => '{localhost:993/ssl/novalidate-cert}INBOX',
'mail_username' => 'mailing@soutade.fr',
'mail_password' => 'YOUR_PASSWORD',
'mail_password' => 'j8_xksCbPI62hu-e',
'gpg_dir' => '/var/www/panous/gnupg',
fuel/app/config/simpleauth.php
127127
128128
129129
130
130
131131
132132
133133
/**
* Salt for the login hash
*/
'login_hash_salt' => 'YOUR_SALT',
'login_hash_salt' => '7kIwv--IU1!3-0_8*Re!2!3s',
/**
* $_POST key for login username
fuel/app/views/lists.php
3333
3434
3535
36
37
38
39
40
41
42
43
44
3645
3746
3847
<textarea id="generated_code_text" cols="100" rows="20">
</textarea>
</div>
<div id="generated_code">
<label>Subscribe/Unsubscribe from mail</label><br/>
<textarea id="generated_code_text" cols="100" rows="5">
To subscribe, send an email at
<a href="mailto:<?php echo $target_list->email ?>?subject=Subscribe"><?php echo $target_list->email ?></a>
To unsubscribe, send an email at
<a href="mailto:<?php echo $target_list->email ?>?subject=Unsubscribe"><?php echo $target_list->email ?></a>
</textarea>
</div>
<script>
function friend_name_change()
{

Archive Download the corresponding diff file

Branches