PHP Classes

File: config/select_dbpassword.php

Recommend this page to a friend!
  Classes of jon   PHP Login Site with Cookie MD5 Hash   config/select_dbpassword.php   Download  
File: config/select_dbpassword.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Login Site with Cookie MD5 Hash
User login system using cookies with MD5 tokens
Author: By
Last change:
Date: 2 months ago
Size: 394 bytes
 

Contents

Class file image Download
<?php

//get the new "apache alias" which would be assigned to the $_POST['value'] variable, and write to "config.cfg" file
$filename = $_SESSION['drive_base_dir'] . 'config.cfg';
$line_i_am_looking_for = 8;
$lines = file( $filename , FILE_IGNORE_NEW_LINES );
$lines[$line_i_am_looking_for] = $_POST['value'].';';
file_put_contents( $filename , implode( "\n", $lines ) );






?>