-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bf6208
commit 64e1f98
Showing
4 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/caCredits.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<? | ||
###################################################### | ||
# # | ||
# CA Auto Turbo Mode copyright 2017, Andrew Zawadzki # | ||
# # | ||
###################################################### | ||
|
||
function getLineCount($directory) { | ||
global $lineCount; | ||
|
||
$allFiles = array_diff(scandir($directory),array(".","..")); | ||
foreach ($allFiles as $file) { | ||
if (is_dir("$directory/$file")) { | ||
getLineCount("$directory/$file"); | ||
continue; | ||
} | ||
$extension = pathinfo("$directory/$file",PATHINFO_EXTENSION); | ||
if ( $extension == "sh" || $extension == "php" || $extension == "page" ) { | ||
$lineCount = $lineCount + count(file("$directory/$file")); | ||
} | ||
} | ||
} | ||
|
||
$caCredits = " | ||
<center><table align:'center'> | ||
<tr> | ||
<td><img src='http://www.jrj-socrates.com/Cartoon%20Pics/Misc/Tripping%20The%20Rift/Chode_300.gif' width='50px';height='48px'></td> | ||
<td><strong>Andrew Zawadzki</strong></td> | ||
<td>Main Development</td> | ||
</tr> | ||
</table></center> | ||
<br> | ||
<center><em><font size='1'>Copyright 2017 Andrew Zawadzki</font></em></center> | ||
<center><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7M7CBCVU732XG' target='_blank'><img src='https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif'></a></center> | ||
<br><center><a href='http://lime-technology.com/forum/index.php?topic=40262.0' target='_blank'>Plugin Support Thread</a></center> | ||
"; | ||
getLineCount("/usr/local/emhttp/plugins/ca.turbo"); | ||
$caCredits .= "<center>$lineCount Lines of code and counting!</center>"; | ||
$caCredits = str_replace("\n","",$caCredits); | ||
?> |