Skip to content

Commit ba82c3e

Browse files
authored
Change naming and coding conventions (#1)
* Add empty index.html files to all folders * Add releases folder to gitignore * Rename hook files to comply with naming conventions * Make code comply with the PEAR standard
1 parent e1528db commit ba82c3e

File tree

13 files changed

+76
-73
lines changed

13 files changed

+76
-73
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.lvimrc
2+
/releases

dev/css/index.html

Whitespace-only changes.

dev/html/index.html

Whitespace-only changes.

dev/js/index.html

Whitespace-only changes.

dev/jslang.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
<?php
22

3-
$lang = array(
4-
);
3+
$lang = array();

dev/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

33
$lang = array(
4-
'editor_embeds_desc' => "Certain content can be automatically embedded. For example, if a user posts a link to a video on YouTube or Vimeo the video can be embedded into the post. Changing this setting won't apply to existing content.<br>Links from the following sites are supported: College Humor, Coub, Dailymotion, Facebook, Flickr, Funny Or Die, Gfycat, Google Maps, Hulu, Instagram, ReverbNation, Screencast.com, SmugMug, SoundCloud, Spotify, Streamable, TED, Twitch, Twitter, Ustream, Vimeo, Vine, Wistia, YouTube, and internal links to content within the community."
4+
'editor_embeds_desc' => "Certain content can be automatically embedded. For example, if a user posts a link to a video on YouTube or Vimeo the video can be embedded into the post. Changing this setting won't apply to existing content.<br>Links from the following sites are supported: College Humor, Coub, Dailymotion, Facebook, Flickr, Funny Or Die, Gfycat, Google Maps, Hulu, Instagram, ReverbNation, Screencast.com, SmugMug, SoundCloud, Spotify, Streamable, TED, Twitch, Twitter, Ustream, Vimeo, Vine, Wistia, YouTube, and internal links to content within the community.",
55
);

dev/resources/index.html

Whitespace-only changes.

dev/setup/10000.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
//<?php
22

33
/* To prevent PHP errors (extending class does not exist) revealing path */
4-
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
5-
{
6-
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
7-
exit;
4+
if (!\defined('\IPS\SUITE_UNIQUE_KEY')) {
5+
header((isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0') . ' 403 Forbidden');
6+
exit;
87
}
98

109
/**
1110
* 1.0.0 Upgrade Code
1211
*/
1312
class ips_plugins_setup_upg_10000
1413
{
15-
/**
16-
* Step 1
17-
*
18-
* @return true
19-
*/
20-
public function step1()
21-
{
22-
return true;
23-
}
14+
/**
15+
* Step 1
16+
*
17+
* @return true
18+
*/
19+
public function step1()
20+
{
21+
return true;
22+
}
2423
}

dev/setup/index.html

Whitespace-only changes.

dev/setup/install.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
//<?php
22

33
/* To prevent PHP errors (extending class does not exist) revealing path */
4-
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
5-
{
6-
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
7-
exit;
4+
if (!\defined('\IPS\SUITE_UNIQUE_KEY')) {
5+
header((isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0') . ' 403 Forbidden');
6+
exit;
87
}
98

109
/**
1110
* Install Code
1211
*/
1312
class ips_plugins_setup_install
1413
{
15-
/**
16-
* Step 1
17-
*
18-
* @return true
19-
*/
20-
public function step1()
21-
{
22-
return true;
23-
}
14+
/**
15+
* Step 1
16+
*
17+
* @return true
18+
*/
19+
public function step1()
20+
{
21+
return true;
22+
}
2423
}

0 commit comments

Comments
 (0)