update.php file from your server before using LinkMan'); } /* Start user session or output an error */ session_name('LINKMAN'); if (!session_start()) { error('Cannot start a new PHP session. Please contact server administrator or webmaster!'); } /* If no action parameter is set let's force visitor to login */ if (empty($_REQUEST['action'])) { if (isset($_SESSION['logged']) && $_SESSION['logged'] == 'Y') { pj_session_regenerate_id(); mainpage(); } else { login(); } } else { $action=htmlspecialchars($_REQUEST['action']); } /* Do the action that is set in $action variable */ switch ($action) { case 'login': checkpassword(); $_SESSION['logged']='Y'; pj_session_regenerate_id(); header('Location: index.php'); exit(); case 'saveset': checklogin(); savesettings(); break; case 'settings': checklogin(); settings(); break; case 'check': checklogin(); checklinks(); break; case 'remove': checklogin(); removelink(); break; case 'edit': checklogin(); editlink(); break; case 'savelink': checklogin(); savelink(); break; case 'add': checklogin(); addlink(); break; case 'logout': logout(); break; case 'uppr': checklogin(); update_pr(); break; case 'banned': checklogin(); banned_manage(); break; case 'banned_save': checklogin(); banned_save(); break; default: login(); } exit(); function banned_save() { global $settings; $banned = pj_input($_POST['banned']); $fp = @fopen($settings['banfile'],'w') or problem('Can\'t open file '.$settings['banfile'].' for writing, on Linux CHMOD it to 666 (rw-rw-rw-)!'); flock($fp, LOCK_EX); fputs($fp,$banned); flock($fp, LOCK_UN); fclose($fp); done('Your banned websites list has been updated successfully.'); } // End banned_save() function banned_manage() { global $settings; printHeader(); ?>

Main page | LOGOUT


Banned websites

Here is a list of websites banned from your link exchange. Banned websites can be listed one per line, separated with a space, comma or some other character.

 

Cancel / Go back

 

Main page | LOGOUT


Configure LinkMan
(script version: )

All fields are required. You will find more information about these settings in the LinkMan Readme file.

Checking file status  
Exists, Writable'; } else { $file_error_present = 1; echo 'Exists, Not writable
Please make sure PHP scripts can write to the '.$settings['linkfile'].' file. On Linux servers CHMOD this file to 666 (rw-rw-rw-). You will not be able to accept links until this issue is resolved.'; } } else { $file_error_present = 1; echo 'Missing, Not writable
Please make sure file '.$settings['linkfile'].' is located in your LinkMan folder and that PHP scripts can write to this file. On Linux servers CHMOD it to 666 (rw-rw-rw-). You will not be able to accept links until this issue is resolved.'; } ?>
settings.php Exists, Writable'; } else { $file_error_present = 1; echo 'Exists, Not writable
Please make sure PHP scripts can write to the settings.php file. On Linux servers CHMOD this file to 666 (rw-rw-rw-). You will not be able to save settings until this issue is resolved.'; } ?>
Exists, Writable'; } else { $file_error_present = 1; echo 'Exists, Not writable
Please make sure PHP scripts can write to the '.$settings['banfile'].' file. On Linux servers CHMOD this file to 666 (rw-rw-rw-). You will not be able to ban websites from your link exchange until this issue is resolved.'; } } else { $file_error_present = 1; echo 'Missing, Not writable
Please make sure file '.$settings['banfile'].' is located in your LinkMan folder and that PHP scripts can write to this file. On Linux servers CHMOD it to 666 (rw-rw-rw-). You will not be able to ban websites from your link exchange until this issue is resolved.'; } if ($file_error_present) { echo '

Test files again'; } ?>
   
Available settings  
Admin password:
Website URL:
Website title:
Website description:
Show "Add a link form":
Notify me of new links:
Admin e-mail address:
Maximum links:
Use Security image:
Enable SPAM filter:
Block superlatives:
Normal links or redirects:

Add rel="nofollow" to links:

Add new links to:
File with link data:
File with banned websites:
Show URL after title:
Show Google PageRankTM:

Minimum PR to accept website:
Minimum reciprocal URL PR:
Block links with rel="nofollow":
Block noindex, nofollow pages:
Block duplicate links:
Show thumbshots:

Thumbshots service URL:
Hide these sections on load:




Debug mode:

>

 

Cancel / Go back

 

Updating Google PageRank... '; foreach($lines as $thisline) { list($name,$email,$title,$url,$recurl,$description,$featured,$old_pr)=explode($settings['delimiter'],$thisline); $description = trim($description); $featured = empty($featured) ? 0 : 1; $old_pr = trim($old_pr); $old_pr = empty($old_pr) ? 0 : $old_pr; $new_pr = getpr($url); $new_pr = empty($new_pr) ? 0 : $new_pr; if ($new_pr != $old_pr) { $rewrite = 1; $j = $i-1; $lines[$j] = "$name$settings[delimiter]$email$settings[delimiter]$title$settings[delimiter]$url$settings[delimiter]$recurl$settings[delimiter]$description$settings[delimiter]$featured$settings[delimiter]$new_pr\n"; } echo '

Updating link N. '.$i.'...
'; echo '-> Link URL: '.$url.'
'; echo '-> Old PageRank: '.$old_pr.'/10
'; echo '-> New PageRank: '.$new_pr.'/10
'; $i++; flush(); } if ($rewrite == 1) { $lines = implode('',$lines); $fp = fopen($settings['linkfile'],'w') or problem('Couldn\'t open links file for writing! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,$lines); flock($fp, LOCK_UN); fclose($fp); echo '

UPDATING LINKINFO FILE

'; } else { echo '

NOTHING TO UPDATE

'; } echo '

 

DONE!

Back to main page

'; exit(); } // END update_pr() function checklinks() { global $settings; $lines = file($settings['linkfile']); $site_url = strtolower($settings['site_url']); ini_set('user_agent', 'LinkMan '.$settings['verzija'].' by http://www.phpjunkyard.com'); $i = 1; $rewrite = 0; $found = 0; echo ' Checking reciprocal links... '; foreach($lines as $thisline) { list($name,$email,$title,$url,$recurl,$description,$featured,$pr)=explode($settings['delimiter'],$thisline); echo '

Checking link N. '.$i.'...
'; echo '-> Link URL: '.$url.'
'; if ($recurl == 'http://nolink') { echo 'No reciprocal link required!

'; echo '- - - - - - - - - - - - - - - - - - - - - - - - - - - -

'; $i++; flush(); continue; } else { echo '-> Reciprocal URL: '.$recurl.'
'; } echo '-> Opening and reading reciprocal URL '; $html = @file_get_contents($recurl) or $html='NO'; if ($html == 'NO') { if (empty($_POST['docantopen'])) { echo '
CAN\'T OPEN RECIPROCAL URL!

Owner (click on name for e-mail): '.$name.'
'; } else { echo '
CAN\'T OPEN RECIPROCAL URL!

Removing link ...
'; unset($lines[$i-1]); $rewrite=1; } } else { $html=strtolower($html); if (preg_match_all('/]*href=([\"\']??)([^" >]*?)\\1([^>]*)>/siU', $html, $matches, PREG_SET_ORDER)) { foreach($matches as $match) { if ($match[2] == $settings['site_url'] || $match[2] == $settings['site_url'].'/') { $found = 1; break; } } } if ($found) { echo '
A link to '.$settings['site_url'].' was found!

'; } elseif (empty($_POST['dowhat'])) { echo '
LINK NOT FOUND!

Owner (click on name for e-mail): '.$name.'
'; } else { echo '
LINK NOT FOUND!

Removing link ...
'; unset($lines[$i-1]); $rewrite=1; } $found = 0; } $i++; echo '- - - - - - - - - - - - - - - - - - - - - - - - - - - -

'; flush(); } if ($rewrite == 1) { $lines = implode('',$lines); $fp = fopen($settings['linkfile'],'wb') or problem('Couldn\'t open links file for writing! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,$lines); flock($fp, LOCK_UN); fclose($fp); echo '

UPDATING LINKINFO FILE

'; } else { echo '

NOTHING TO UPDATE

'; } echo '

 

DONE!

Back to main page

Free online source of motorcycle videos, pictures, insurance, and Forums.The Dodge intrepid is a large four-door, full-size, front-wheel drive sedan car model that was produced for model years 1993 to 2004 .The Mazda 323 name appeared for the first time on export models 323f.Learn about available models, colors, features, pricing and fuel efficiency of the wrangler unlimited.The official website of American suzuki cars.Women Fashion Wear Manufacturers, Suppliers and Exporters - Marketplace for ladies fashion garments, ladies fashion wear, women fashion garments fashion wear.New Cars and Used Cars; Direct Ford new fords.Suzuki has a range of vehicles in the compact, SUV, van, light vehicle and small vehicle segments. The Suzuki range includes the Grand suzuki vitara.View the Healthcare finance group company profile on LinkedIn. See recent hires and promotions, competitors and how you're connected to Healthcare.bmw 6 series refers to two generations of automobile from BMW, both being based on their contemporary 5 Series sedans.Read expert reviews of the nissan van.Read reviews of the Mazda protege5.Locate the nearest Chevrolet Car chevy dealerships.Top Searches: • nissan for sale buy nissan.Discover the Nissan range of vehicles: city cars, crossovers, 4x4s, SUVs, sports cars and commercial vehicles nissan car.GadgetMadness is your Review Guide for the Latest new gadget.Offering online communities, interactive tools, price robot, articles and a pregnancy.Time to draw the winner of the Timex iron man health.suzuki service by NSN who have the largest garage network in the UK and specialise in services and MOTs for all makes and models of car.Site of Mercury Cars and SUV's. Build and Price your 2009 Mercury Vehicle. See Special Offers and Incentives mercurys cars.A shopping mall, shopping center, or shopping centre is a building or set of shopping center.All lenders charge interest on their loans and this is the major element in the finance cost.The Web site for toyota center in houston tx.New 2009, 2010 subarus.Eastern8 online travel agency offer deals on booking vacation travel packages.Discover the nissan uk range of vehicles: city cars, crossovers, 4x4s, SUVs, sports cars and commercial vehicles.Welcome to Grand Cherokee UnLimited's zj.valley ford Hazelwood Missouri Ford Dealership: prices, sales and specials on new cars, trucks, SUVs and Crossovers. Pre-owned used cars and trucks.Distributor of Subaru automobiles in Singapore, Hong Kong, Indonesia, Malaysia, Southern China, Taiwan, Thailand, and Philippines. impreza wrx sti.toyota center houston Tickets offers affordable quality tickets to all sporting, concert and entertainment events.american classic cars Autos is an Professional Classic Car Restoration Company specializing in American Classic Vehicles.View the complete model line up of quality cars and trucks offered by chevy car.Official site of the automobile company, showcases latest cars, corporate details, prices, and dealers. hyundai motor.Research Kia cars and all new models at Automotive.com; get free new kia.The 2009 all new nissan Cube Mobile Device is here. Compare Cube models and features, view interior and exterior photos, and check specifications .Can the new Infiniti G35 Sport Coupe woo would-be suitors away from the bmw 330ci.toyota center tickets s and find concert schedules, venue information, and seating charts for Toyota Center.Electronics and gadgets are two words that fit very well together. The electronic gadget.Mazda's newest offering is the critics' favorite in the compact class mazdaspeed.Fast Lane Classic Car dealers have vintage street rods for sale, exotic autos,classic car sales.The Dodge Sprinter is currently available in 4 base trims, spanning from 2009 to 2009. The Dodge sprinter msrp.Welcome to masda global website .The kia carnival is a minivan produced by Kia Motors.Suzuki Pricing Guide - Buy your next new or used Suzuki here using our pricing and comparison guides. suzuki reviews.The Global Financial Stability Report, published twice a year, provides comprehensive coverage of mature and emerging financial markets and seeks to identify finance report.Companies for honda 250cc, Search EC21.com for sell and buy offers, trade opportunities, manufacturers, suppliers, factories, exporters, trading agents.Complete information on 2009 bmw m3 coupe.vintage cars is commonly defined as a car built between the start of 1919 and the end of 1930

food coloring for dog hair dye

online dating

katia child model

would give

luminox vs traser

Australia Section

recipe for mince meat pie

free music

baiana by barbatuques mp3 download

A notable exception

tv9 malaysia

pussy lips

kereta lelong malaysia

programming language

ford engine revving problems

new vehicles

islandproperties real estate cebu phil

solar energy

boombang codes

effective way

raven black sexycouple

hydrogen fuel

mla format citing excerpts from books

hair growth

recipe for cavatappi amatriciana

couldnt stop

moster curves

slowly moved

misty hamm goes both ways

supernormal powers

shaun bradford

VoIP service

clara mass hospital in belleville nj

using RSS

cory hart gymnast

legal music

baked lobster in cream cheese recipe

red grape

rj12 vs rj11 difference

type diabetes

macam macam aplikasi perangkat lunak

great investment

maribel guardia pictures

being untrue and back

orange discharge from anus

video games

jameson irish whiskey recipe

should never

food preparation terminologies

this phenomenon

nvlddmkm fix

door opened

beef bourginon stew

internet marketing

suzuki ts 400 apache

Los Angeles

black tie dinner etiquette

feel like

food rich in potassium

later became

gelatin dessert recipes

Las Vegas

neglected fury 3 6

same way

food cliparts

used car

scientific atlanta dpx2203 drivers

regular basis

onkyo ht r550

uranium supplies

heritage recipes of england

regular basis

italy recipe

web site

globus throat problems globus syndrome

female body

internal organ human pictures

such follow

hibbetts sports printable coupon

ass cheeks

specsintact

make him

florida ticket scalping laws

drug addiction

dog organic food

community centres

mga tula tungkol sa droga

cock off

onkyo dx 710

finger inside

wow macro castsequence

little bit

exorcist theme song wav

appear road map rain

3c905b tx drivers

long distance

tanyas heels boots

certain amount

abraham m1 tank

Variety Access

sysco foods clifton park ny

credit card

shannon wada biography

always got

grilled talipa recipes

Captain Arthur

aiwa powered subwoofer

the Phinuit control

food gift label templates

county borough

domios games

Parts Discount

anna nicole autopsy pictures

Truth is defined

lesbians wtih strap ons

great deal

happy puppy poems

Hannah Montana

victoria s secrets modes nude

complete ice

marble pound cake recipe

domain name

ballbusting girl

car donation

pathophysiology of laryngitis

needs like

haute couture in the 1950 s

better deals

paul dean cooking show

fuck yes

men hot

internet connection

tv remote control codes for beko

good girl

the dangers of eating fast food

cum covered

meat pie recipes for moose meat

Las Vegas

and sarah laughed by joanne greenberg

hear horse cut

chicka chicka boom boom lyrics

new home

fyeo newcastle

completely nude

christmas santa dolls by ashley cooper

wet spot

rca rcu810 manual

designer dogs
'; exit(); } // END checklinks() function savelink() { global $settings; $id = pj_isNumber($_POST['id'],'Invalid link ID number!'); $name = pj_input($_POST['name']) or $name = 'unknown'; $email = pj_input($_POST['email']) or $email = 'unknown@unknown.com'; if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)) { problem('Please enter a valid e-mail address!'); } $title = pj_input($_POST['title'],'Please enter the title (name) of the website!'); $url = pj_input($_POST['url'],'Please enter the URL of the website!'); if (!(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$url))) { problem('Please enter valid URL of the website!'); } if (empty($_POST['norecurl'])) { $recurl = pj_input($_POST['recurl'], 'Please enter the url where a reciprocal link to your site is placed!'); if ($recurl != 'http://nolink' && !(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$recurl))) { problem('Please enter valid URL of the page where the reciprocal link to your site is placed!'); } } else { $recurl = 'http://nolink'; } $url = str_replace('&','&',$url); $recurl = str_replace('&','&',$recurl); $description = pj_input($_POST['description'],'Please write a short description of your website!'); if (strlen($description)>200) { problem('Description is too long! Description of your website is limited to 200 chars!'); } $featured = $_POST['featured'] ? 1 : 0; if ($settings['show_pr']) { require('pagerank.php'); $pr = getpr($url); } $pr = empty($pr) ? 0 : $pr; $replacement = "$name$settings[delimiter]$email$settings[delimiter]$title$settings[delimiter]$url$settings[delimiter]$recurl$settings[delimiter]$description$settings[delimiter]$featured$settings[delimiter]$pr\n"; $lines = @file($settings['linkfile']); if ($featured) { unset($lines[$id]); array_splice($lines, 0, 0, $replacement); } else { /* If previously featured move below any other featured now */ $next_id = $id + 1; if (isset($lines[$next_id])) { list($name,$email,$title,$url,$recurl,$description,$featured,$pr)=explode($settings['delimiter'],$lines[$next_id]); if ($featured) { unset($lines[$id]); $lines[] = $replacement; } else { $lines[$id] = $replacement; } } else { $lines[$id] = $replacement; } } $fp = fopen($settings['linkfile'],'w') or problem('Couldn\'t open links file for writing! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,implode('',$lines)); flock($fp, LOCK_UN); fclose($fp); done('Your changes have been saved successfully.'); } // END savelink() function editlink() { global $settings; $id = pj_isNumber($_GET['id'],'Invalid link ID number!'); $lines = file($settings['linkfile']); list($name,$email,$title,$url,$recurl,$description,$featured,$pr)=explode($settings['delimiter'],$lines[$id]); if ($name == 'unknown') { $name = ''; } if ($email == 'unknown@unknown.com') { $email = ''; } printHeader(); ?>

Edit link

Use this form edit websites in your link exchange. LinkMan will NOT check for reciprocal links when you submit using this form!

Webmaster name:
Webmaster e-mail:
Website title:
Website URL:
URL with reciprocal link: >
Featured link:1 |

Website description:

1 Featured links will be displayed on top of the links page and made more visible than other links.

 

Cancel / Go back

 

The selected link was successfully removed!'); } // END removelink() function addlink() { global $settings; $name = pj_input($_POST['name']) or $name = 'unknown'; $email = pj_input($_POST['email']) or $email = 'unknown@unknown.com'; if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)) { problem('Please enter a valid e-mail address!'); } $title = pj_input($_POST['title'],'Please enter the title (name) of the website!'); $url = pj_input($_POST['url'],'Please enter the URL of the website!'); if (!(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$url))) { problem('Please enter valid URL of the website!'); } if (empty($_POST['norecurl'])) { $recurl = pj_input($_POST['recurl'], 'Please enter the url where a reciprocal link to your site is placed!'); if ($recurl != 'http://nolink' && !(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$recurl))) { problem('Please enter valid URL of the page where the reciprocal link to your site is placed!'); } } else { $recurl = 'http://nolink'; } $url = str_replace('&','&',$url); $recurl = str_replace('&','&',$recurl); $description = pj_input($_POST['description'],'Please write a short description of your website!'); if (strlen($description)>200) { problem('Description is too long! Description of your website is limited to 200 chars!'); } $lines=@file($settings['linkfile']); if (count($lines)>$settings['max_links']) { problem('You have reached your maximum links limit!'); } $featured = $_POST['featured'] ? 1 : 0; if ($settings['show_pr']) { require('pagerank.php'); $pr = getpr($url); } $pr = empty($pr) ? 0 : $pr; $replacement = "$name$settings[delimiter]$email$settings[delimiter]$title$settings[delimiter]$url$settings[delimiter]$recurl$settings[delimiter]$description$settings[delimiter]$featured$settings[delimiter]$pr\n"; if ($featured == 1) /* Featured links are added to the top */ { $replacement .= implode('',$lines); $fp = fopen($settings['linkfile'],'w') or problem('Couldn\'t open links file for writing! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,$replacement); flock($fp, LOCK_UN); fclose($fp); } elseif ($settings['add_to'] == 0) /* Add to top but BELOW any featured links */ { $i = 0; foreach ($lines as $thisline) { list($name2,$email2,$title2,$url2,$recurl2,$description2,$featured2,$pr2)=explode($settings['delimiter'],$thisline); $featured2 = $featured2 ? 1 : 0; if ($featured2 == 0) { $lines[$i] = $replacement . $thisline; break; } $i++; } $replacement = implode('',$lines); $fp = fopen($settings['linkfile'],'w') or problem('Couldn\'t open links file for writing! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,$replacement); flock($fp, LOCK_UN); fclose($fp); } else /* Add to the bottom */ { $fp = fopen($settings['linkfile'],'a') or problem('Couldn\'t open links file for appending! Please CHMOD all txt files to 666 (rw-rw-rw)!'); flock($fp, LOCK_EX); fputs($fp,$replacement); flock($fp, LOCK_UN); fclose($fp); } done('The URL '.$url.' was successfully added to your links page'); } // END addlink() function done($message) { global $settings; printHeader(); ?>

 

 

 

 

Click to continue

 

 

 

 

Add a new link | Refresh page | Update PageRank | '; } ?> Banned websites | Settings | LOGOUT


 ERROR

Your hosting company doesn't permit PHP scripts to open URL addresses, because of this LinkMan will not work properly on this server (your visitors will not be able to add links to your link exchange)!

To fix this issue contact your host and ask them to enable PHP setting allow_url_fopen for your website!

 
Existing links
 
Show / Hide

Check reciprocal links Show / Hide

Click the below button and the script will check all submitted links to see if your reciprocal link is still there.

-> What to do if the reciprocal link is NOT found:


-> What to do if the reciprocal URL can't be opened (is not available):


-> This can take a while, please be patient!


Add a link Show / Hide

Use this form to manually add websites to your link exchange. LinkMan will NOT check for reciprocal links when you submit using this form and it will not check if this website has been banned from your exchange!

Webmaster name:
Webmaster e-mail:
Website title:
Website URL:
URL with reciprocal link:
Featured link:1 |

Website description:

1 Featured links will be displayed on top of the links page and made more visible than other links.

Rate this script Show / Hide

If you like this script please rate it or even write a review at:

Rate this Script @ Hot Scripts

Rate this Script @ PHP Resource index


Stay updated Show / Hide

Make sure you always have the latest version of LinkMan installed. This will ensure your script always has the latest bug fixes and newest functions!
Click to check for updates

Join my FREE newsletter and you will be notified about new scripts, new versions of the existing scripts and other important news from PHPJunkyard.
Click here for more info

 

 

LOGGED OUT

 

You have been successfully logged out.

Click here to login again

 

 

 

 

 

 

Enter admin panel

 
Please type in your admin password

 

 

 

 

ERROR

 

An error occured:

 

Back to the previous page

 

 

 

 

LinkMan admin panel
=")) { session_regenerate_id(); } else { $randlen = 32; $randval = '0123456789abcdefghijklmnopqrstuvwxyz'; $random = ''; $randval_len = 35; for ($i = 1; $i <= $randlen; $i++) { $random .= substr($randval, rand(0,$randval_len), 1); } if (session_id($random)) { setcookie( session_name('LINKMAN'), $random, ini_get("session.cookie_lifetime"), "/" ); return true; } else { return false; } } } function savesettings() { global $settings; $settings['apass'] = pj_input($_POST['apass'],'Please enter your admin password!'); $settings['site_url'] = pj_input($_POST['site_url'],'Please enter the URL of your website!'); if (!(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$settings['site_url']))) { problem('Please enter valid URL of your website!'); } $settings['site_title'] = pj_input($_POST['site_title'],'Please enter the title (name) of your website!'); $settings['site_desc'] = pj_input($_POST['site_desc'],'Please enter a short description of your website!'); $settings['show_form'] = $_POST['show_form'] ? 1 : 0; $settings['notify'] = $_POST['notify'] ? 1 : 0; if ($settings['notify']) { $settings['admin_email'] = pj_input($_POST['admin_email'],'Please enter your e-mail address'); if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$settings['admin_email'])) { problem('Please enter a valid e-mail address!'); } } else { $settings['admin_email'] = pj_input($_POST['admin_email']); } $settings['max_links'] = intval($_POST['max_links']); if ($settings['max_links'] < 1) { $settings['max_links'] = 50; } $settings['autosubmit'] = $_POST['autosubmit'] ? 1 : 0; $settings['filter_sum'] = mt_rand(100000,999999); $settings['spam_filter'] = $_POST['spam_filter'] ? 1 : 0; $settings['superlatives'] = $_POST['superlatives'] ? 1 : 0; $settings['clean'] = ($_POST['clean']==1 || $_POST['clean']==2) ? $_POST['clean'] : 0; $settings['use_nofollow'] = ($_POST['use_nofollow']==1 || $_POST['use_nofollow']==2) ? $_POST['clean'] : 0; $settings['add_to'] = $_POST['add_to'] ? 1 : 0; $settings['linkfile'] = pj_input($_POST['linkfile'],'Please enter the name of the file with link data!'); $settings['banfile'] = pj_input($_POST['banfile'],'Please enter the name of the file with banned websites!'); $settings['show_url'] = $_POST['show_url'] ? 1 : 0; $settings['show_pr'] = ($_POST['show_pr']==1 || $_POST['show_pr']==2) ? $_POST['show_pr'] : 0; $settings['min_pr'] = intval($_POST['min_pr']); if ($settings['min_pr'] < 0 || $settings['min_pr'] > 10) { $settings['min_pr'] = 0; } $settings['min_pr_rec'] = intval($_POST['min_pr_rec']); if ($settings['min_pr_rec'] < 0 || $settings['min_pr_rec'] > 10) { $settings['min_pr_rec'] = 0; } $settings['block_nofollow'] = $_POST['block_nofollow'] ? 1 : 0; $settings['block_meta_rob'] = $_POST['block_meta_rob'] ? 1 : 0; $settings['block_duplicates'] = $_POST['block_duplicates'] ? 1 : 0; $settings['show_thumbshots'] = ($_POST['show_thumbshots']==1 || $_POST['show_thumbshots']==2) ? $_POST['show_thumbshots'] : 0; if ($settings['show_thumbshots']) { $settings['thumb_url'] = pj_input($_POST['thumb_url'],'Please enter the URL of the website!'); if (!(preg_match("/(http:\/\/+[\w\-]+\.[\w\-]+)/i",$settings['thumb_url']))) { problem('Please enter valid URL of your thumbshots service!'); } } else { $settings['thumb_url'] = pj_input($_POST['thumb_url']); } $settings['debug'] = $_POST['debug'] ? 1 : 0; $settings['hide'] = ''; if (isset($_POST['divLinks'])) {$settings['hide'].='\'divLinks\',';} if (isset($_POST['divCheck'])) {$settings['hide'].='\'divCheck\',';} if (isset($_POST['divAdd'])) {$settings['hide'].='\'divAdd\',';} if (isset($_POST['divRate'])) {$settings['hide'].='\'divRate\',';} if (isset($_POST['divUpdate'])) {$settings['hide'].='\'divUpdate\',';} /* Ok, let's update the settings file now */ $settings_file=''; // END $settings_file $fp = @fopen('settings.php','w') or problem('Can\'t open file settings.php for writing, on Linux CHMOD it to 666 (rw-rw-rw-)!'); flock($fp, LOCK_EX); fputs($fp,$settings_file); flock($fp, LOCK_UN); fclose($fp); done('Your changes have been saved successfully.'); } // END savesettings() ?>
LinkMan
-- Admin panel --