Skip to content

Commit d84c397

Browse files
committed
more updates 2012 folder links
1 parent 385a6d8 commit d84c397

10 files changed

+107
-107
lines changed

2012/01/13/SOPA-Blackout-component.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Suggestions welcomed...
3737
var $sopa_blackout_page_title = 'Supporting anti-SOPA Blackout day'; // title and h1 content
3838
var $sopa_blackout_include_video = true; // embed the video from americancensorship.org on your site?
3939
var $sopa_blackout_include_form = true; // include the form from americancensorship.org on your site?
40-
var $sopa_blackout_message = '<p>On the Tuesday 24th January 2012, the US Senate will vote on the <a href="https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" target="_blank">internet censorship bill</a>.<br /><br />Whilst it is an American law, it has far reaching repurcusions for the web as a whole.<br /><br />There are many companies against SOPA, such as <a href="http://www.mattcutts.com/blog/internet-censorship-sopa/" target="_blank">Google</a>, <a href="http://blog.reddit.com/2012/01/stopped-they-must-be-on-this-all.html" target="_blank">Reddit</a>, <a href="http://news.cnet.com/8301-31921_3-57342914-281/silicon-valley-execs-blast-sopa-in-open-letter/" target="_blank">Facebook, Twitter, Wikipedia</a>, and today I am lending my weight to the argument by taking my site down for the day.<br /><br />If you think SOPA doesn\'t affect you, please think again. Watch the video below, or use the form below to force politicians to take notice.<br /><br />Thank you</p>';
40+
var $sopa_blackout_message = '<p>On the Tuesday 24th January 2012, the US Senate will vote on the <a href="https://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" target="_blank">internet censorship bill</a>.<br /><br />Whilst it is an American law, it has far reaching repurcusions for the web as a whole.<br /><br />There are many companies against SOPA, such as <a href="https://www.mattcutts.com/blog/internet-censorship-sopa/" target="_blank">Google</a>, <a href="https://blog.reddit.com/2012/01/stopped-they-must-be-on-this-all.html" target="_blank">Reddit</a>, <a href="https://news.cnet.com/8301-31921_3-57342914-281/silicon-valley-execs-blast-sopa-in-open-letter/" target="_blank">Facebook, Twitter, Wikipedia</a>, and today I am lending my weight to the argument by taking my site down for the day.<br /><br />If you think SOPA doesn\'t affect you, please think again. Watch the video below, or use the form below to force politicians to take notice.<br /><br />Thank you</p>';
4141
var $sopa_blackout_date = '2012-01-18'; // SOPA Blackout Day - 18th January 2012
4242
var $sopa_blackout_timestart = 8; // Starting at 8am or 08:00:00
4343
var $sopa_blackout_timeend = 20; // Ending at 8pm or 20:00:00
@@ -81,7 +81,7 @@ Suggestions welcomed...
8181
if($this->sopa_blackout_include_form===true){
8282
$message .='
8383
<div class="sopablackout_padding">
84-
<iframe src="http://americancensorship.org/callwidget" width="588" height="625" border="0"></iframe>
84+
<iframe src="https://americancensorship.org/callwidget" width="588" height="625" border="0"></iframe>
8585
</div>';
8686
}
8787
$message .='

2012/01/30/Running-CakePHP-using-the-Facebook-s-HipHop-compiler.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ but never had the time. This year I decided to give it a go...
66

77
Facebook surprised the PHP community in early 2010 when announced they
88
managed to write a compiler for PHP to produce C++
9-
(`http://developers.facebook.com/blog/post/358)`_ code. Being PHP the
9+
(`https://developers.facebook.com/blog/post/358)`_ code. Being PHP the
1010
most popular language for web applications, it faces a lot of
1111
competition from other languages to position themselves as the fastest
1212
language out there, buy this announcement was a real game changer as
@@ -306,7 +306,7 @@ applications? Leave your thoughts in the comments section!
306306
.. _https://github.com/lorenzo/hiphop-php): https://github.com/lorenzo/hiphop-php)
307307
.. _https://github.com/facebook/hiphop-php/wiki/Building-and-Installing-on-Ubuntu-11.10): https://github.com/facebook/hiphop-php/wiki/Building-and-Installing-on-Ubuntu-11.10)
308308
.. _https://github.com/lorenzo/HipHop),: https://github.com/lorenzo/HipHop),
309-
.. _http://developers.facebook.com/blog/post/358): http://developers.facebook.com/blog/post/358)
309+
.. _https://developers.facebook.com/blog/post/358): https://developers.facebook.com/blog/post/358)
310310
.. _http://localhost/: http://localhost/
311311
.. _https://github.com/lorenzo/curl/zipball/hiphop): https://github.com/lorenzo/curl/zipball/hiphop)
312312
.. _https://github.com/facebook/hiphop-php/wiki/Running-HipHop): https://github.com/facebook/hiphop-php/wiki/Running-HipHop)

2012/02/06/CakePHP-2-0-6-released.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ Links
5353

5454
+ [1] `https://github.com/cakephp/cakephp/zipball/2.0.6`_
5555
+ [2] `https://cakephp.org/changelogs/2.0.6`_
56-
+ [3] `http://cakephp.lighthouseapp.com/projects/42648/development-roadmap`_
56+
+ [3] `https://cakephp.lighthouseapp.com/projects/42648/development-roadmap`_
5757
+ [4] `https://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html`_
5858

5959

6060

6161

62-
.. _http://cakephp.lighthouseapp.com/projects/42648/development-roadmap: http://cakephp.lighthouseapp.com/projects/42648/development-roadmap
62+
.. _https://cakephp.lighthouseapp.com/projects/42648/development-roadmap: https://cakephp.lighthouseapp.com/projects/42648/development-roadmap
6363
.. _https://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html: https://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html
6464
.. _https://cakephp.org/changelogs/2.0.6: https://cakephp.org/changelogs/2.0.6
6565
.. _https://github.com/cakephp/cakephp/zipball/2.0.6: https://github.com/cakephp/cakephp/zipball/2.0.6

2012/02/08/Custom-RSS-Helper-that-actually-works-with-namespaces-for-Cakphp-2-0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ comment if you have troubles running it.
3232
.. _here: https://book.cakephp.org/2.0/en/core-libraries/helpers/rss.html
3333
.. _Cakephp bRss Helper: https://bin.cakephp.org/view/1232471515
3434
.. _this view: https://bin.cakephp.org/view/1266667979
35-
.. _this thread: http://groups.google.com/group/cake-php/browse_thread/thread/25e0f825c4eb878b#
35+
.. _this thread: https://groups.google.com/group/cake-php/browse_thread/thread/25e0f825c4eb878b#
3636

3737
.. author:: benni
3838
.. categories:: articles, helpers

2012/02/15/reCAPTCHA-Plugin-for-CakePHP-2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ https://www.google.com/recaptcha
1515
===========
1616
Download recaptchalib.php.
1717
And put it in "Recaptcha/Vendor".
18-
http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-
18+
https://code.google.com/p/recaptcha/downloads/list?q=label:phplib-
1919
Latest
2020

2121

2012/03/02/CakePHP-internationalization-and-localization.rst

+92-92
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ PHP Snippet:
3434

3535
::
3636

37-
<?php
3837
<?php
39-
38+
<?php
39+
4040
/* add language to the file*/
41-
41+
4242
$config['LANGUAGE'] = array(‘supported’ => array(‘eng’, ‘spa’),
43-
43+
4444
‘default’ => ‘eng’);
4545
?>
4646

@@ -80,9 +80,9 @@ PHP Snippet:
8080

8181
::
8282

83-
<?php
8483
<?php
85-
84+
<?php
85+
8686
Configure::load(‘config’);?>
8787
?>
8888

@@ -93,7 +93,7 @@ this tutorial I’ll use .po files.
9393
For getting more information you can refer to this article:
9494

9595
Localizing PHP Applications series Abouzekry wrote.
96-
`http://phpmaster.com/localizing-php-applications-1`_
96+
`https://phpmaster.com/localizing-php-applications-1`_
9797
Note: Remember that po files are useful for short messages, if you
9898
find you want to translate long paragraphs, or even whole pages – you
9999
should consider implementing a different solution which we skip in
@@ -150,153 +150,153 @@ PHP Snippet:
150150

151151
::
152152

153-
<?php
154153
<?php
155-
154+
<?php
155+
156156
class SwitchtoController extends AppController {
157-
157+
158158
var $uses = array();
159-
159+
160160
var $name = ‘Switchto’;
161-
161+
162162
function beforeFilter()
163-
163+
164164
{
165-
165+
166166
parent::beforeFilter();
167-
167+
168168
}
169-
169+
170170
}
171-
172-
173-
171+
172+
173+
174174
The AppController needs some modifications; edit the controller so it looks like this:
175-
175+
176176
<?php
177-
177+
178178
class AppController extends Controller
179-
179+
180180
{
181-
181+
182182
function beforeFilter()
183-
183+
184184
{
185-
185+
186186
if($this->_checkLanguage())
187-
187+
188188
$this->redirect($this->referer(), null, true);
189-
189+
190190
}
191-
191+
192192
function _checkLanguage()
193-
193+
194194
{
195-
195+
196196
if(!$this->Session->check(‘Config.language’) || $this->name == “Switchto”) {
197-
197+
198198
$default_lang = Configure::read(‘LANGUAGE.default’);
199-
199+
200200
$supported_lang = Configure::read(‘LANGUAGE.supported’);
201-
201+
202202
$lang = null;
203-
203+
204204
if($this->name == “Switchto”)
205-
205+
206206
$lang = $this->action;
207-
207+
208208
// we need the Cookie
209-
209+
210210
App::Import(‘Component’, ‘Cookie’);
211-
211+
212212
$cookie = & new CookieComponent;
213-
213+
214214
$cookie->time = ‘+360 days’;
215-
215+
216216
$cookie->name = ‘MYAPP’;
217-
217+
218218
$cookie->domain = ”;
219-
219+
220220
$cookie->key = ‘whatever-key-you-wish’;
221-
221+
222222
$cookie->startup();
223-
223+
224224
if(!class_exists(“L10n”))
225-
225+
226226
uses(‘l10n’);
227-
227+
228228
$l10n = & new L10n();
229-
229+
230230
if(!$lang || !in_array($lang, $supported_lang))
231-
231+
232232
{
233-
233+
234234
if($cookie->read(‘tutolanguage.lang’) )
235-
235+
236236
{
237-
237+
238238
$lang = $cookie->read(‘tutolang/lang’);
239-
239+
240240
if(!in_array($lang, $supported_lang))
241-
241+
242242
$lang = null;
243-
243+
244244
}
245-
245+
246246
/* try to find a language spaom browser that we support */
247-
247+
248248
if(!$lang)
249-
249+
250250
{
251-
251+
252252
$browserLang = split (‘[,;]‘, env(‘HTTP_ACCEPT_LANGUAGE’));
253-
253+
254254
foreach($browserLang as $langKey )
255-
255+
256256
{
257-
257+
258258
if(isset($l10n->__l10nCatalog[$langKey]) &&
259-
259+
260260
in_array($l10n->__l10nCatalog[$langKey]['locale'], $supported_lang) )
261-
261+
262262
{
263-
263+
264264
$lang = $l10n->__l10nCatalog[$langKey]['locale'];
265-
265+
266266
break;
267-
267+
268268
}
269-
269+
270270
}
271-
271+
272272
}
273-
273+
274274
}
275-
275+
276276
if(!$lang)
277-
277+
278278
$lang = $language_default;
279-
279+
280280
// set the language, and write in cookie
281-
281+
282282
$l10n->__setLanguage($lang);
283-
283+
284284
$cookie->write(array(‘tutolanguage.lang’ => $lang));
285-
285+
286286
$this->Session->write(‘Config.language’,$lang);
287-
287+
288288
if($this->name == “Switchto”)
289-
289+
290290
return true;
291-
291+
292292
}
293-
293+
294294
return false;
295-
295+
296296
}
297-
297+
298298
}
299-
299+
300300
?>
301301

302302
In order to remember the language selected by the user, we will use
@@ -355,23 +355,23 @@ PHP Snippet:
355355

356356
::
357357

358-
<?php
358+
<?php
359359
<h2><?php __(” bienvenida”); ?></h2>
360-
360+
361361
<br />
362-
362+
363363
<ul>
364-
364+
365365
<li><?php echo $html->link(‘English’, ‘/switchto/eng’);?></li>
366-
366+
367367
<li><?php echo $html->link(‘Spanish’, ‘/switchto/spa’);?></li>
368-
368+
369369
</ul>
370-
370+
371371
<br />
372-
372+
373373
<h3><?php echo __(“congrat”, true);?><h3>
374-
374+
375375
?>
376376

377377
The file demonstrates two ways in which the __() function is used. In
@@ -396,7 +396,7 @@ or using translations in gettext style have lots of advantages which
396396
we will find in this article and CakePHP make it rapid and more
397397
flexible to create your applicatio
398398

399-
.. _http://phpmaster.com/localizing-php-applications-1: http://phpmaster.com/localizing-php-applications-1
399+
.. _https://phpmaster.com/localizing-php-applications-1: https://phpmaster.com/localizing-php-applications-1
400400

401401
.. author::
402402
.. categories:: articles

2012/04/04/Minify-plugin-for-CakePHP-2-0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Minify plugin for CakePHP 2.0+
44
`Minify`_ is an application that combines multiple CSS or Javascript
55
files, removes unnecessary whitespace and comments, and serves them
66
with gzip encoding and optimal client-side cache headers.
7-
More info: `http://code.google.com/p/minify`_
7+
More info: `https://code.google.com/p/minify`_
88
For this plugin, the application Minify is inside Vendor
99

1010

@@ -87,7 +87,7 @@ Any criticism or suggestion is welcome on
8787
.. _HtmlHelper: https://book.cakephp.org/2.0/en/core-libraries/helpers/html.html
8888
.. _plugin syntax: https://book.cakephp.org/2.0/en/appendices/glossary.html#term-plugin-syntax
8989
.. _Minify: https://github.com/mrclay/minify
90-
.. _FAQ: http://code.google.com/p/minify/wiki/FAQ
90+
.. _FAQ: https://code.google.com/p/minify/wiki/FAQ
9191
.. _https://code.google.com/p/minify: https://code.google.com/p/minify
9292
.. _https://github.com/maurymmarques/minify-cakephp: https://github.com/maurymmarques/minify-cakephp
9393

0 commit comments

Comments
 (0)