طريقة تركيب السكربت :
====================
Installation:
1) Obtain Job2c.zip
2) Unzip it into the directory you want (The document root 'htdocs' or 'www' is the best)
3) Make sure your directory structure as follows:
Job2C/
Job2C/admin
Job2C/ban
Job2C/conf
Job2C/img
Job2C/jobseekers (chmod to 777)
Job2C/js
Job2C/languages
Job2C/lib
Job2C/photoes (chmod to 777)
Job2C/templates
4. Set permissions
Attention! Befor running Install script you need to set permissions to make 'conf' directory and it's content files writable! This involves using the CHMOD command. If you do not understand CHMOD, there are some resources and information listed at
http://www.eclecticpixels.com/tutorials/chmod/. CHMOD as follows:
chmod 777 conf (this is a directory)
chmod 777 all files in the conf directory
After the installation and final configuration you may chmod "conf" directory to 606 for security purposes.
5. Define your database settings. Check existance of the target database. The Install script may create new database for your application, if you choose wizard way of installation.
Automatic Installation
Run install.php in your web browser and follow the instructions.
Manual Installation:
==============================================================
Below instruction only for MySQL database backend.
For other databases backends see their manuals ==============================================================
- Create a MySQL database (If you have a MySQL database installed and enough experinece in SQL you may pass this step).
The database needs a database-name, a username, and a password.
The database-name can be any name beginning with a letter, the username
should be your UNIX login name. The password must differ from all
other passwords in your system for security reasons.
If you have a root access to the MySQL server then you can create the
database following these instructions:
4.1. On UNIX prompt write:
mysqladmin -uroot -p create YourDataBaseName
(enter MySQL root password)
4.2. On UNIX prompt write:
mysql -uroot -p
(enter MySQL root password)
4.3. On MySQL prompt write:
grant select, insert, update, create, alter, delete, drop
on DATABASENAME.*
to USERNAME@localhost
identified by 'PASSWORD' ;
quit
If you don't have a root access then you have to ask the webmaster to create a database for you. Just specify the database-name, username, and password. Remember that the database password must be different from your normal password.
- Create database tables
There are two ways:
- From the command line for your operating system, type
% mysql YourDataBaseName < Job2C.sql
This will send the statements into the mysql client and create the tables for you. To verify that this was done correctly, go into the mysql client and type.
%mysql YourDataBaseName
You should see
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 3.22.32
Type 'help' for help.
mysql>
now type
mysql> show tables;
and you should see the next tables listed
+----------------------------+
| Tables_in_YourDataBaseName |
+----------------------------+
|payment
|pE_answers
|pE_cat
|pE_city
|pE_country
|pE_employers
|pE_employers_agent
|pE_employers_black
|pE_employers_inbox
|pE_employers_invoices
|pE_fees
|pE_inst
|pE_invoices
|pE_job
|pE_jobseekers
|pE_jobseekers_agent
|pE_jobseekers_inbox
|pE_paypal
|pE_questions
|pE_responses
|pE_resume
|pE_resume_full
|pE_staff
|pE_staff_agent
|pE_staff_black
|pE_staff_inbox
|pE_staff_invoices
|pE_state
+----------------------------+
- use phpMyAdmin or similar DataBase Web Administration tools to run the SQL requests from Job2C.sql file
- Make changes to the conf/conf.inc file. This file is well documented, so you should be able to pick out what you need to change fairly easily.
########### MySQL DataBase Setting ####################
$dbname = "yourDBName"; //DataBase Name
$hostname = "mysql.yourdomain.comm:64366"; //Host Name:PORT
$username = "yourDBUserName"; //DataBase Access UserName
$password = "yourDBPassword"; //DataBase Access Password
########### WebDocs real path #################
$epath="/usr/local/apache/htdocs/Job2C"; //real path
$eurl="http://localhost/Job2C"; //Your Site URL
$sp="/"; //Windows System '\\'
$adminLogin="admin"; //login for admin section
$adminPass="12345"; //login for admin section
$adminEmail="admin@myhost.com"; //admin email
############## Color configuration for the default HTML table layout
$design["tab_color"]="#d4d5c2"; //HTML Table background color tag setting
$design["tr_color"]="#E4E5D2"; //HTML Table <tr> tag background color setting
$design["td_color"]="white"; //HTML Table <td> tag background color setting
############## Upload Settings #####################################
$upload["size"]="50000"; //file size limit for upload
$upload["width"]="125"; //file width limit for upload
$upload["height"]="125"; //file height limit for upload
$upload["type"]["photo"]=array("gif","jpeg","jpg","png");
// Mime types for photo and logo files
$upload["type"]["doc"]=array("msword","rtf","text","plain","octet");
// Mime types for documents
############## End ##################################################
include("../languages/lang_eng.inc"); choose Interface Language
You may create your own language interface simply translating the message variables in the lang_eng.inc.
6) Customize Settings via Admin page if you need more custom structure for your data.
Job Categories
Education
Schedule
Experience
Language
Employment
Limit
Marks
Salary Period
Countries
States
Institutes
Location List
Posting Duration
File Types
File Extentions
Mimes
Difficult Levels
Question Types
Response Types
Publish Mode
Ad status
Search status
Order
Order Type
Relocate
REMEMBER! The basic changes are possible only during first installation. Then you are not allowed to change array keys and values meaning. You may only edit entries in the context of their basic meaning. For example it incorrect to change "Student (High School)" entry from $education array to "Retired" or reorder array keys. It may damage User's posted data.
7) Customize e-Commerce Settings from the Admin section.
To customize page layout you may edit next two files in 'templates' folder:
templates/header.inc
templates/footer.inc
As same as you may customize the content of standard web pages located in in 'templates' folder
TERMS OF USE - terms.htm
FAQ - faq.htm
HELP - help.htm
PRIVACY - privacy.htm
TESTIMONIALS - contact.htm
You may use editing tools of the admin section for this task
9) Once all this has been done, you should protect the conf/conf.inc file (that contains
your login/password for db access). Look at your server documentation to find out
how to do this.
For the Apache server, you'll need to create an ".htaccess" file (without quotes) in
the conf subdir that contains:
<files conf.inc>
Order Deny,Allow
Deny From All
</files>
====================
عاد نبي مترجم
