13 Oct, 2008
Posted by: Sterling Hamilton In: Code
Alrighty then - I have taken the PHP script I wrote to do this and converted it to a Shell script so it would be faster.
It’s prettier…because it has colors now - or a function that helps me produce colors anyway!
Right now it’s still really simple code.
The most complicated bits about it are the regular expressions.
It’s getting to grow to the size where I need to start commenting…BLAH.
For now it’s done. I was going to extend it more - but with all the data we gathered from the 2 basic things it does…well I need to get working on upgrading versions and what not.
Enjoy!
Read the rest of this entry »
Tags:
Code,
Exyst,
joomla,
Programming,
script,
Server,
Shell,
Simple,
VirtueMart,
work,
X-Cart
13 Oct, 2008
Posted by: Sterling Hamilton In: Code
Need to style some of that text in your script?
Well then use this bad boy:
#!/bin/bash
#
# Example usage:
# echo ${RedF}This text will be red!${Reset}
# echo ${BlueF}{$BoldOn}This will be blue and bold!${BoldOff} - and this is just blue!${Reset}
# echo ${RedB}${BlackF}This has a red background and black font!${Reset}and everything after the reset is normal text!
Colors() {
Escape="\033";
BlackF="${Escape}[30m"; RedF="${Escape}[31m"; GreenF="${Escape}[32m";
YellowF="${Escape}[33m"; BlueF="${Escape}[34m"; Purplef="${Escape}[35m";
CyanF="${Escape}[36m"; WhiteF="${Escape}[37m";
BlackB="${Escape}[40m"; RedB="${Escape}[41m"; GreenB="${Escape}[42m";
YellowB="${Escape}[43m"; BlueB="${Escape}[44m"; PurpleB="${Escape}[45m";
CyanB="${Escape}[46m"; WhiteB="${Escape}[47m";
BoldOn="${Escape}[1m"; BoldOff="${Escape}[22m";
ItalicsOn="${Escape}[3m"; ItalicsOff="${Escape}[23m";
UnderlineOn="${Escape}[4m"; UnderlineOff="${Escape}[24m";
BlinkOn="${Escape}[5m"; BlinkOff="${Escape}[25m";
InvertOn="${Escape}[7m"; InvertOff="${Escape}[27m";
Reset="${Escape}[0m";
}
10 Oct, 2008
Posted by: Sterling Hamilton In: Code
So remember Joomla Scanner? OF COURSE YOU DO!
Anyway…I’ve extended it.
Now it detects the VirtueMart component and version…AND XCart.
With the way this script is going…I might just start writing a little program that is a little more robust.
Something that asks for what you want it to check for…and also has the ability to check for updates for installed packages…that would be FRIGGIN’ SWEET!
You’re excited…you know it.
Anyway - here’s a sample.
Read the rest of this entry »
09 Oct, 2008
Posted by: Sterling Hamilton In: Design
09 Oct, 2008
Posted by: Sterling Hamilton In: Showcase
Tonight I felt like showcasing a truly awesome website that I think everyone should take a look at.
Mint.com

Mint.com is a free and robust Web application that allows users to automatically track and analyze their financial transactions, set budgets, and even send balance updates in text messages to cell phones.
Mint is fresh, intelligent online money management. Not only is Mint free, it saves you money. While existing personal finance software packages require hours to set up, a passion for accounting (is that possible?) and hours of weekly maintenance, Mint is virtually effortless.
Read the rest of this entry »
09 Oct, 2008
Posted by: Sterling Hamilton In: Code
I wrote a script today that basically goes through and finds all websites on our servers and displays the ones that have Joomla and what version of Joomla it has installed.
Example Output:
Retrieving Site List…
[http://www.breweryarts.org] [Mambo] [4.5.4]
[http://www.artbyblair.com] [Mambo] [4.5.4]
[http://www.budgaugh.com] [Joomla!] [1.0.13]
[http://www.ecomadness.com] [Joomla!] [1.0.15]
[http://www.janusstudio.com] [Joomla!] [1.0.11]
[http://www.sharonchandler.com] [Mambo] [4.5.4]
See code below:
Read the rest of this entry »
08 Oct, 2008
Posted by: Sterling Hamilton In: Updates
That’s right - I added people to my affiliates page.
To learn more about them visit the affiliates page!
I added some info and a picture to the about page and finally, I added a form to the contact page so now people can send me e-mails!
I added the LightBox feature to my website.
More updates soon!
08 Oct, 2008
Posted by: Sterling Hamilton In: Code
Here’s a little something I wrote at work today.
Basically we charge per e-mail sent out using PHPList.
Until now we have not been keeping track of who is sending out what and thus we haven’t been billing accordingly. I decided to fix that!
So below is a script that will be run at the beginning of every month.
It will go back to the previous month and grab how many e-mails were sent out from what databases and then e-mail it to our billing department so the client can be billed.
The only tricky part was the automatic date lookup. I hate dates…but I did some simple methods to get around the handicap and now it all works.
The first charge for last month is like $420.00 - and that was a slow month. So let’s say that every month gets $350 worth of e-mails…well that’s $4200 a year. I’d actually venture to say that the real number is more along $6000 a year. So woohoo for increased automated income.
Example Output:
This is an automated message.
Below is a list of all PHPList e-mails that went out for September
[5040] E-mails for Database: [ahhhmassage_db]
[24103] E-mails for Database: [clarkcountybar_newsletter]
[7978] E-mails for Database: [commacoffee_news]
[11665] E-mails for Database: [mckernan_newsletter]
See code below:
Read the rest of this entry »