MyGen 1.0.2~

BlackHat ~ "I did it for the money!"

MyGen 1.0.2 is a simple but advanced content scraper/generator for all you people who love to fill the search engines with endless junk for ad money. May the adsense God's bring you much wealth, and if they do why not let others now about this script.

FUN STUFF

Incorrect use of these scripts could get your website banned in the Search Engines or lose your website revenue source.
It is your responsibility to ensure that you have the relevant permissions for anything you intend to display with these scripts.
The creators of these scripts WILL NOT accept any responsibility for losses that occur through your use of these scripts.

USE AT YOUR OWN RISK, DUH!

BASIC INSTALL

  1. Upload all the files in the MyGen/Upload folder to your domain root.
  2. Chmod the ‘cache' folder to be writable by your server. chmod 777 will do!
  3. Upload your keywords.txt file to the domain root with each keyword separated by a new line in the text file
  4. Upload any articles you want MyGen Markov plug-in to use for text generation. (It's best to have the articles broken down line-by-line per sentence.).

UPGRADING FROM v1.0.1

Remove the keyword and articles files from this package and upload everything else. You will need to also make changes to the config.inc.php if you want to have support for subdomains, etc.

ADVANCED INSTALL/SETUP

Editing the config.inc.php:

Open the config.inc.php file and you will find a hand full of predefined settings that the script will use to locate files, and options.

Example:
define('LOCAL_CACHE', './cache/'); // LOCATION OF THE CACHE
define('LOCAL_INCLUDES', './includes/'); // LOCATION OF THE INCLUDES
define('LOCAL_TEMPLATE', './template/'); // LOCATION OF THE TEMPLATES
define('LOCAL_HOOKS', './hooks/'); // LOCATION OF THE PLUG-IN FILES
define('CACHE_FORMAT', '.cache'); // FILE EXTENTION FOR THE CACHE FILES.
define('TEMPLAT_FORMAT', '.php'); // FILE EXTENTION FOR THE TEMPLATE FILES.
define('FILE_KEYWORDS', './keywords.txt'); // THE NAME OF THE KEYWORD FILE AND LOCATION
define('DOMAIN_TYPE', true); // SET MyGen TO BE RUN ON WWW(true) OR NON-WWW/SUBDOMAIN(false)

To edit something like the keyword file you would change the './keywords.txt' to a new name. Please note that when you change one of the options you will also need to change the folder name or file names accordingly.

DO NOT CHANGE THE FIRST FIELD IN OF THE DEFINE LINES EX: 'FILE_KEYWORDS'. DOING SO WILL CRASH MyGen.

HOOKS AND PLUG-INS

MyGen virtually runs off of its hooks. Even some of the core components (See /hooks/basic_hooks.php) are written in the hook system. The hooking system that MyGen uses is really simple to conform to. Just about any script can be used in the hook system, but I do recommend encasing all your plug-ins with a function, so that its easy to call and to keep it from conflicting with other scripts.

To install a hook just upload it to your hook folder and MyGen will automatically include it when the page is loaded. If a hook requires more then one file you can put the trigger file in the hook folder and have the remaining files in a subfolder of the hooks folder as the script only loads php based files in the hook folder. To use a hook you will need to edit one of the 3 templates in the template folder. Simply open one of the template files and add <? your_hook_name(any_MyGen_vars); ?> and your hook will run/output at that location. See Codex for more information of MyGen vars and commands.

TEMPLATES

All templates are stored in the template folder (This can be changed by the config.inc.php). Each template can run as if it was it's own php file as MyGen will process each template with all its commends and output the html.

Its is important to note when developing your own template that the index, sitemap, and result templates DO NOT use the same function calls as one of the other templates do. You will need to review each template to see how it processes request from the MyGen engine.

HTACCESS

MyGen comes with a standard htaccess file that allows it to mask the urls from the search engines as static urls, as well as allow MyGen main engine to process the request. Your apache must be set to allow htaccess to mod rewrite.

Copy of included htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .+ %{DOCUMENT_ROOT}/index.php [L]

SCRIPT SUPPORT

It would be nice to get paid to write stuff like this, but unfortunately I'm not.

So you’re out of luck when trying to get support from me! ;)
You could always try one of the many SEO forums on the net.

http://syndk8.net/forum/index.php < BH forums

http://seoblackhat.com/ < Subscription forums

CODEX

THIS_DOMAIN
Holds the domain name ex: www.domainname.com

THIS_PAGE
The name of the page that MyGen is using ie, index, sitemap, results.

LOCAL_CACHE
Stores the location of the cache folder so that MyGen does not have to keep requesting/processing the data.

LOCAL_INCLUDES
Holds the location of the folder for the include files for MyGen core functions

LOCAL_TEMPLATE
Where the templates are located at! ;)

LOCAL_HOOKS
Where the hooks are located at.

CACHE_FORMAT
Cache file format. ie '.cache '.

TEMPLAT_FORMAT
Template format, normally .php

FILE_KEYWORDS
Holds the name and location of the keyword file.

Title_Tag($keyword);
Makes a title tag for the index, result, and sitemap pages. ;)

GetKeyword($keyword);
Gets the keyword for the loaded page.

$page_keyword
This can also hold the keyword. LOL

Keyword_Links($num, $ord);
Builds the links from the keyword file. $num is number of links, $ord is order; RAND, DESC, or leave blank for ASC.

Give404($page);
Will output a 404 header and message

All non standard hooks/plug-ins are not included in the Codex, you will need to review the hook to see what function calls are available to you.

 

EOF