Monday, November 17, 2008
/root/firewall
##### and chmod 700 /root/firewall #####
#! /bin/sh
##### Configure both network interfaces ######
# Delete and flush. Default table is "filter". Others like "nat"
# must be explicitly stated.
/sbin/iptables --flush
#####- Flush all the rules in filter and nat tables
/sbin/iptables -t nat -F
/sbin/iptables --delete-chain
#####- Delete all chains that are not in default filter and nat table
/sbin/iptables --table nat --delete-chain
#####Set up IP FORWARDing and Masquerading
/sbin/iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
#####Allow loopback access. This rule must come before the rules
#####denying port access!!
/sbin/iptables -A INPUT -i lo -p all -j ACCEPT
#####- Essential rule so your computer to be able to access itself
##### through the loopback interface
/sbin/iptables -A OUTPUT -o lo -p all -j ACCEPT
##### Catch port 80 and redirect to port 3128 #####
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
##### Redirect RDP port to 10.0.0.99 #####
#/sbin/iptables -t nat -A PREROUTING -t nat -p tcp -d 10.0.0.X --dport 5900 -j DNAT --to 10.0.0.Y:5900
/sbin/iptables -t nat -A PREROUTING -t nat -p tcp --dport 3389 -j DNAT --to 10.0.0.Y:3389
##### Block your kids/customers/employees from connecting to squid #####
##### directly order to bypass the filter. #####
/sbin/iptables -A INPUT -m tcp -p tcp -s ! 127.0.0.1 --dport 3128 -j DROP
################# Allow rules ##############################
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#####- Accept established connections
/sbin/iptables -A INPUT -p tcp --tcp-option ! 2 -j REJECT --reject-with tcp-reset
##### Reject ICMP-port #####
/sbin/iptables -A INPUT -p icmp -j REJECT --reject-with icmp-port-unreachable
#####- Open secure shell port ######
/sbin/iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#####- Open secure shell port ######
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#####- Open HTTP and Proxy port
#/sbin/iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
##### Open icp port connection for proxy
/sbin/iptables -A INPUT -p tcp --dport 3130 -j ACCEPT
##### Open DNS port
/sbin/iptables -A INPUT -p tcp --dport 53 -j ACCEPT
/sbin/iptables -A INPUT -p udp --dport 53 -j ACCEPT
##### Open DHCP port
#/sbin/iptables -A INPUT -p udp --dport 67 --sport 68 -j ACCEPT
##### Allow all SMTP traffic #####
#/sbin/iptables -A INPUT -p tcp --dport 25 -j ACCEPT
##### Allow access to the VPN service
#/sbin/iptables -A INPUT -p udp --dport 1194 -j ACCEPT
#/sbin/iptables -A INPUT -i tun+ -j ACCEPT
#/sbin/iptables -A FORWARD -i tun+ -j ACCEPT
##### Allow access to Remote Desktop
/sbin/iptables -A INPUT -p tcp --dport 3389 -j ACCEPT
##### Allow access to ntop Network monitor
#/sbin/iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
################## Drop all rules #############################
/sbin/iptables -P INPUT DROP
#####- Drop all other connection attempts. Only connections defined
##### above are allowed.
##### Log all rejected packets to syslog (useful for debugging) #####
/sbin/iptables -A INPUT -j LOG --log-level warn --log-prefix "[DENIED] "
/etc/network/interfaces
auto lo
iface lo inet loopback
##### Wire Network #####
#auto eth1
iface eth1 inet dhcp
##### Wireless network #####
auto eth1
iface eth1 inet static
address 10.0.0.X
netmask 255.0.0.0
network 10.0.0.0
gateway 10.0.0.YYY
dns-nameservers 10.0.0.YYY 10.0.0.ZZZ
# broadcast 10.255.255.255
wpa-driver wext
# wpa-conf /etc/wpa_supplicant.conf
wpa-ssid Wireless_Network_SSID
wpa-ap-scan 2
wpa-proto RSN
wpa-pairwise CCMP TKIP
wpa-group TKIP
wpa-key-mgmt WPA-PSK
wpa-psk TOP_SECRET_PASSWORD
######## Example ###########
#wpa-driver wext
#wpa-conf managed
#wpa-ssid
#wpa-ap-scan 2
#wpa-proto RSN
#wpa-pairwise CCMP
#wpa-group CCMP
#wpa-key-mgmt WPA-PSK
#wpa-psk
############################
#auto eth2
iface eth2 inet dhcp
#auto ath0
iface ath0 inet dhcp
#auto wlan0
iface wlan0 inet dhcp
Linux Create / convert AVI file to DVD format ~ Create video DVDs
Create DVD from command line
Following tools get installed with devede:
- mencoder : MPlayer’s Movie Encoder) is a simple movie encoder
- ffmpeg : FFmpeg video converter
- dvdauthor : assembles multiple mpeg program streams into a suitable DVD filesystem
So if you are a pro command line user, type the following commands to convert file1.avi fille2.avi to DVD format (if you are not comfortable with command line use devede GUI software and just skip following commands) :
$ cat file1.avi file2.avi > ccmovie.avi
Now run movie encoder to create out.avi from ccmovie.avi (option -ovc and -oac sets no encoding, just streamcopy)
$ mencoder -o out.avi -noidx -oac copy -ovc copy ccmovie.avi
Next run FFmpeg video converter to set aspect ratio, ntsc dvd television standard etc:
$ ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg
At a high level, a DVD is a collection of menus and titles. Conceptually, a menu contains buttons which can be assigned actions and provides a list of choices to the end user, while a title contains the main content of the DVD. However, in reality many of the features available in menus (including buttons, pausing, and looping) are also available in titles. Use dvdauthor assembles multiple mpeg program streams into a suitable DVD filesystem. You should see DVD filesytem in dvd directory:$ dvdauthor --title -o dvd -f out.mpg
Creates the table of contents file instead of a titleset:
$ dvdauthor -o dvd -T
Create dvd.iso:$ mkisofs -dvd-video -o dvd.iso dvd/
Burn dvd.iso to DVD disk:
$
growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvdrw=dvd.iso
HOWTO Convert video files
Introduction
There are many good reasons to convert video files you made yourself - or video files forwarded to you which you plan to distribute.
Good reasons to change a video file can be:
- Playability
- Size
This howto will to introduce to you some of the basic commands to use the most common Linux command-line program to convert video files from one format to another.
The file-size
Size is important, a videofile reduced by 100 MB will save you 100 GB of bandwidth if 1000 people download it; obviously the reduction of 100 MB pr. file will save you 1 GB of harddrive space if you host 10 video-files on a web-server.
Thus; You will likely want files to be as small as possible without reducing the video quality
Playability
There is no point in sending someone a video file if they can not play it. The most common media formats on the Internet today are divx and xvid.
There is a myth among Windows-users that .wmv (Windows Media Video) is some kind of standard. However, this format is extremely poor and limited to users of that OS.
Basics
Mencoder:
input_filename.mpg
-ovc codec for video output
-oac codec for audio output
-o output_filename.avi
$ mencoder -ovc lavc -oac lavc -o
Transcode:
-i input_filename.mpg
-y codec for audio/video output
-o output_filename.avi
$ transcode -i movie.mpg -o movie.avi -y divx
These are just the basics. There are many more advanced options for choosing codecs, bitrate and so on for both these tools. dad
XviD Encoding
Using MPlayer (mencoder)
You can encode XviD using one or two passes of the original file. You will get better quality if you use two-pass encoding, but does take longer to encode the video.
One-Pass Encoding
You can only set the bitrate or fixed_quant using one-pass encoding. You can only choose bitrate if you do two-pass encoding.
You must set one of these when encoding XviD using mencoder.
By setting bitrate
- Using bitrate will encode the video to a constant bitrate (CBR).
- Set bitrate=
- Higher = better quality with larger files, and
- lower = less quality with smaller files.
- A bitrate of 800 will give you near DVD quality when encoding hi-quality video like a DVD disc.
- VCD quality is around 400-500.
- Internet streaming quality is generally around 80-150.
- Mencoder's default bitrate is 687 kbits/s.
- You need about ~800kb/s to get high quality on a 720x480 sized movie.
Encoding example by setting the bitrate:
$ mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o
Setting the audio bitrate
You may also want to change the audio bitrate for the audio encoded using mp3lame when you are making a XviD file with the goal of making a small file using -lameopts abr:br=
$ mencoder \
-ovc xvid \
-oac mp3lame \
-lameopts abr:br=92 \
-xvidencopts bitrate=150 \
-o
By bitrate calculated by a fixed file-size
You can set the filesize you want in KiloBytes in order to make mencoder calculate the bitrate for you. This can be done by setting a "negative" bitrate, bitrate=-700000 will give you a movie file which fits nicely on a CD.
$ mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=-700000 -o
By setting a fixed quality
fixed_quant can also be used when doing one-pass encoding.
- fixed_quant=<1-31> specifies what "quality level" you want and will make mencoder automatically try to obtain the best quality/size ratio.
- 1 is the highest quality, and will result in very large file if you use it.
- 31 is the lowest, and the video will look very poor.
- 4 and 5 are good setting for high-quality video. 1, 2 and 3 will give you very little improvement compared to 4, but give you way bigger files.(example:1 is 20mb if 4 is 5mb)
$ mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4 -o
Two-Pass Encoding
$ nice -n 19 mencoder file.wmx -ofps 23.976 -oac mp3lame -lameopts abr:br=92 -ovc xvid -xvidencopts pass=2:bitrate=150 -o audiofix-150bit-xvid.avi
Windows Media files (.wmv/.asf/.wmx)
mencoder can convert wmv files. However, it seems that files created with mencoder from .wmv can not be played in many mediaplayers, namely xine. Adding -ofps 23.976 to the command-line makes files made with mencoder from .wmv play in xine.
$ mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi
xvid from .wmv or .wmx, using two-pass xvid encoding:
$ mencoder file.wmx \
-ofps 23.976 \
-oac mp3lame \
-ovc xvid \
-xvidencopts pass=1 -o /dev/null
$ mencoder file.wmx \
-ofps 23.976 \
-oac mp3lame \
-ovc xvid \
-xvidencopts pass=2:bitrate=250 \
-o 250bit-xvid.avi
The audio track on Windows Media files are sometimes low. You can use midentify to get information about a video file.
midentify file.wmx
ID_AUDIO_BITRATE=64064
With a bitrate of 64k, add -lameopts abr:br=64 when you encode a divx:
$ mencoder file.wmx -ofps 23.976 \
-oac mp3lame \
-ovc xvid \
-xvidencopts pass=1 \
-o /dev/null
$ mencoder file.wmx \
-ofps 23.976 \
-oac mp3lame \
-lameopts abr:br=64 \
-ovc xvid \
-xvidencopts pass=2:bitrate=250 \
-o 250bit-xvid.avi
Storage space is simply wasted if you encode the audio track on the new video file with a higher bitrate than the audio bitrate on the original track.
Convert a video to xVid format:
$ transcode -i movie.mpg -o movie.avi -y xvid
divx
Using transcode
-i ((input file) -o (output) -y (format - xvid/divx)
$ transcode -i movie.mpg -o movie.avi -y divx
Video-CD
Using FFMPEG
ffmpeg can make VCD mpeg video files using -target where the target can be "vcd", "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd". These switches will set the output format options (bitrate, codecs, buffer sizes) automatically.
The default vcd switch makes a PAL vcd.
$ ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg
A ntsc vcd:
$ ffmpeg -i myfile.avi -hq -target ntsc-vcd /tmp/vcd.mpg
Same example using same quality as source:
$ ffmpeg -i myfile.avi -sameq -target vcd /tmp/vcd.mpg
Converting a file for VCD format using a and b frames for MPEG 2:
$ ffmpeg -i myfile.avi -target ntsc-vcd -bf 2 /home/user/Video/vcd.mpg
Flash video (flv)
ffmpeg is the best choice for making flash video sites (.flv files). The syntax is simple:
ffmpeg -i inputfile.avi flashfile.flv
A parameter you likely want is -ab, audio bitrate. The default is 64, which may be fine for home videos, but is is too poor if you want to promote your local talented singer in a music video. Example:
ffmpeg -i musicvideo.mpg -ab 256 Som_du_visnar2.flv
Also note that .flv files do not support a samlerate of 48000, but it will convert using the original file's rate anyway and fault on exit. Flash video can have a sample rate of 44100, 22050 and 11025. Set the audio sampling frequency with -ar freq (usually -ar 44100) if the original file has something other than the valid rates.
Options you may want to consider:
-ab (number) # audio bitrate
-ar freq # audio sampling frequency
-b video bitrate # defaults to 200, which is kind of low
You should also be aware of -sameq. This makes the video the same quality as the original, but tends to make flash video files twice the size as original mpeg's. This is bad when it comes to serving files, but it may be worth it if you really want your flash video to have high quality (and you have the bandwidth..).
DVD
Using FFMPEG
ffmpeg can also make DVD video files using -target, where the target can be "vcd", "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd".
ffmpeg -i myfile.avi -target ntsc-dvd /tmp/dvd.mpg
Embed subtitles into avi
Embed subtiltes into avi.
$ mencoder -oac lavc -ovc lavc \
-sub "subtitle.srt" \
input.avi \
-o output.avi
Embed subtitle into avi and convert into iPod format.
$ mencoder -ss 00:36:36 -endpos 00:01:35 \
-oac faac -faacopts br=160 \
-ovc lavc -lavcopts vcodec=libx264 -vf scale=400:169 \
-sub "subtitle.srt" \
input.avi \
-o output.avi
Convert avi into iPod format.
$ ffmpeg -i output.avi -acodec libfaac -ac 2 output.mov
Convert avi to 3gp
Install ffmpeg:
$ sudo apt-get install ffmpeg
Connvert from avi to 3gp
$ ffmpeg -i movie.avi -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y movie.3gp
Convert from 3GP to AVI:
$ ffmpeg -i movie.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 movie.avi
Convert from MPG to 3GP:
$ ffmpeg -i movie.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y movie.3gp
Convert from MPG to 3GP:
$ ffmpeg -i input -acodec amr_nb -ar 8000 -ac 1 -ab 12 -vcodec h263 -s qcif -r 10 -aspect 16:9 out.3gpUsing MEncoder to create VCD/SVCD/DVD-compliant files:
This section shows some complete commands for creating VCD/SVCD/DVD compliant videos.
1. PAL DVD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
-o movie.mpg
movie.avi
2. NTSC DVD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
-o movie.mpg
movie.avi
3. PAL AVI Containing AC-3 Audio to DVD
If the source already has AC-3 audio, use -oac copy instead of re-encoding it.
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -ofps 25 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:aspect=16/9 -o movie.mpg
movie.avi
4. NTSC AVI Containing AC-3 Audio to DVD
If the source already has AC-3 audio, and is NTSC @ 24000/1001 fps:
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
-vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
-o movie.mpg
movie.avi
5. PAL SVCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg
movie.avi
6. NTSC SVCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg
movie.avi
7. PAL VCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg
movie.avi
8. NTSC VCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-o movie.mpg
movie.avi
Using MEncoder to create VCD/SVCD/DVD-compliant files:
This section shows some complete commands for creating VCD/SVCD/DVD compliant videos.
1. PAL DVD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
-omovie.mpg
movie.avi
2. NTSC DVD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
-omovie.mpg
movie.avi
3. PAL AVI Containing AC-3 Audio to DVD
If the source already has AC-3 audio, use -oac copy instead of re-encoding it.
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
-vf scale=720:576,harddup -ofps 25 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:vstrict=0:aspect=16/9 -omovie.mpg
movie.avi
4. NTSC AVI Containing AC-3 Audio to DVD
If the source already has AC-3 audio, and is NTSC @ 24000/1001 fps:
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
-vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
-omovie.mpg
movie.avi
5. PAL SVCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
-omovie.mpg
movie.avi
6. NTSC SVCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-omovie.mpg
movie.avi
7. PAL VCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
-omovie.mpg
movie.avi
8. NTSC VCD
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
-omovie.mpg
movie.avi
Add videos to VirtueMart products - with the help of AllVideos Plugin!
So how do we enable video playback in VirtueMart, in an easy manner, similar to the AllVideos Plugin? Well... we just enable the use of AllVideos inside VirtueMart! :D
AllVideos has made it very easy for people since June 2006 ( :D) to add videos in their Joomla! content. So a natural progression to this would be to add videos in e-shops/product pages as well. We all know that VirtueMart is the best e-shop implementation out there.
So how do we enable video playback in VirtueMart, in an easy manner, similar to the AllVideos Plugin? Well... we just enable the use of AllVideos inside VirtueMart! :D
Here's the solution to enable the plugin for the "product details" page:
Open up the file administrator/components/com_virtuemart/html/shop.product_details.php and in the end of it, look for:
- Code: Select all
- /* Finish and Print out the Page */
echo $template;
and add ABOVE this some code. Overall the change is this:
- Code: Select all
- // start - enable "content type" plugin parsing
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$row->text = $template;
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, $page ), true );
$template = $row->text;
// end - enable "content type" plugin parsing
/* Finish and Print out the Page */
echo $template;
This will load the "content type" plugins in VirtueMart. That means that you can use the AllVideos Plugin to add videos in your products (as showcase) and even use the "Tabs & Slides in Content Items" Plugin to display your product's details in Tabs and/or Slides!!
Cool, huh??
Direct DOS print outs to network printers on Microsoft Windows
For example, let's say your DOS program prints to LPT1 (most DOS programs do) and your printer is on the network at the following network path:
\\MY_SERVER\PRINTER
- Go to the "DOS/Command Prompt"
- Type the following command:
NET USE LPT1: \\MY_SERVER\PRINTER
and press ENTER.
Remove Windows XP Activation Product
2. Find key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents
3. See the string OOBETimer
4. Double click, change all contents with this one: FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD
5. Right click on WPAEvents(Regedit) and choose Permissions
6. Windows will show up, click to System and Check all of deny Listbox.
7. Restart your PC.