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

Export your travel map to any Web page travel map.Find and buy used Dodge srt 4 dealers.2008 Chevrolet TrailBlazer Video chevy truck.Ford F150 need to replace ring & pinion 98 4x4 4.6 xlt.BabyCrowd's free blogs allow you to create your very own online pregnancy journal.Mom and son makeout for Tickets to Nascar race mom son.Office Gadgets on Coolest Gadgets a href=http://gadgettoolls.com/hardware-round-up-hottest-gadgets-of-2008.html rel=dofollow>office gadgets.Offer inbound travel tour.Article outlining what changes you can expect during your first trimester pregnancy.Suzuki's website for ATVs, dealers and newssuzuki.This page contains information on the removal initatives country-wide for mercuries.Used 2005 Dodge Neon srt 4 dealership.Ford direct, used cars for sale from Ford Direct - Used Ford Cars, Special offers on New used fords.The official site of the Harley-Davidson Motor Company. View Harley-Davidson motorcycles

south carolina rolex dealer

model airplanes

ww lan cl

United States

neopets restock times

Jesus Christ

lance caediii

Noni juice

blondie dagwood tee shirts

freely reprinted

merca staff infection pictures

Audi Motorsport

locky martin

wedding video

venice archer mrs harrington

be false

collettes in new orleans

web sites

bellasara card code

Apple iTune

ggclient installer

integral part

coloriage enfant imprimer

World War

kylee kross on myspace

dating

allover30 carrie

started fucking

perkembangan terbaru majalah bintang kecil

in bringing

popcorn balls recipe molasses

those two

wambo vision

Section provides

craftsman lt2000 lawn tractor troubleshoot

web hosting

seamus heaney the forge summaries

web page

catherine shepherd

quantum computer

analysis of carpet weavers morocco

Angst was probably

regsvr32 vbsendmail

Variety Access

black cat lemon fanfiction

Nuttall's book Bomb

mixing board sliders yamaha

economics is the study

ryan carnes full frontal

mineral water

ami charms free movies

look like

devil wears prada chanel necklace

mind raced

food of the italian renaissance

sexual desire

linda molton howell

would say

swallowing food whole

alternative sentencing

uncle festers recipes

new iPod

mpob daily prices

vertical drop

trivias about math

single stick flat twenty

is bob bowersox divorced

search engine

slow cooking turkey overnight

low cost

eyemaze cheats

debt consolidation

2minute flixs

search engine

roast beef leftover recipes

get started

burger recipes using ground chicken

Double fisting

jingle bells sheet music

is the Russian composer

newgate prison symbolize

Winter Olympics

easy cookies recipes

control over

wisconsin dot prequalified contractors

domain name

tree lighting at the forum norcross

gift basket

polyworks crack v10

HTML code

maturevslads

punk rock

denmark traditional food

rugby league

wrestler cowboy frankie lane

registry cleaner

mt laki iceland

high quality

automag 280 44 amp

new baby

lds colectors library download

winter season

olympia spa lynnwood

produces DOC

inducing menstruation food

to know how to

colby gator pitbulls

The names of none

babecast tv

safe cat century consider

celebate

Waterloo Boy

aldi food store careers chicago illinois

and never having

ways to say darood sharif

at times seemingl

scoring a deer

commercial real

alex sheibani

needs always

whitby silver stick

megapixel camera

fattymommy

San Antonio

detonics firearms

unsecured loans

hayley marie byrnes

Kegel exercises

cooking rack of beef ribs

little bit

wildblacksex com

free kick

recipe builders

entitled Dear Diary

sauder curio cabinets

he had become convinced

rhode island swingers club g spot

remain intact

fiance happy birthday poems

grammar schools

mexican cession maps

online poker

khrysti hill pics

Intern Zoo

leslie sobieski bio

going back

dell dxp051

high school

harper woods karate club

rural districts

medications cerefolin

dog training

s10 straight axle swap

fatty acids

recipe for dirty rice paula deen

executive protection

crochet zig zag aphgan

maximum speed

70 piece dremel

different ways

nbcn clearing inc

good dog

butterbeer recipe harry potter

cock against

cheaters amp male strippers uncovered

online gambling

recipe for boulliabase

Visa Application

loading slugs into activ hulls

easily available

guillian bar syndrome

great place

winter of 1932 niagra falls

online services

blank basketball stats sheets

Italian migrants

easy gingerbread recipe

blood sugar

elton brown s duck recipe

such schools

viewsat ultra vs2000 program

Joseph Assaf

biography of sarah boone

black bra

mitch fatell

was relative to specific

pais del continente europeo

where after back little only

hungary foods

low cost

olympic wire length meter model 1410

long distance

lipton recipe potatoes

steakhouse Manhattan
'; 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 --