Member
Last active 8 years ago
config.php
<?php
// Database connection details
//
// Only needed if you do not use FreePBX or want to specify
// a different database than the freepbx one.
added php but now i getting this
notice
/var/www/fop2/lib/dblib.php (line 234)
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given
notice
/var/www/fop2/lib/dbgrid.php (line 1020)
Function split() is deprecated
notice
/var/www/fop2/lib/dbgrid.php (line 1020)
Function split() is deprecated
Add Delete Marked Export Import Search
First Name Last Name Phone 1 Phone 2 Company Picture
No records found
«‹1 ›»
Page : 1 of 0 . Total records found: 0
Im using version 2.26 and the first 2 line of phonebook.php look like this
<?php
header("Content-Type: text/html; charset=utf-8");
require_once("config.php");
?>
and those are the one for config.php
<?
// Database connection details
//
// Only needed if you do not use FreePBX or want to specify
// a different database than the freepbx one.
$DBHOST = 'localhost';
$DBNAME = 'fop2';
$DBUSER = 'XXX';
$DBPASS = 'XXXXXXX';
I populated my database with the mysql.db from the fop2 web directory and set config.php mysql user, password and database.
when i go to:
http://X.X.X.X/fop2/phonebook.php
i still get this error:
\"\']+)\s*$/",$line,$matches)) { $conf[ $matches[1] ] = trim($matches[2]); } } } else { die("
".sprintf("Missing or unreadable config file (%s)...cannot continue", $filename)."
"); } return $conf; } ?> You do not have permissions to access this resource.
when i go in my fop2 web interface and click on phonebook it won't open it just kept loading.
Im trying to make my fop2 version 2.26 use phonebook with my database in a non pbx installation
I activated
define('DEBUG',true); in config.php
when i go to:
http://X.X.X.X/fop2/phonebook.php
i get :
\"\']+)\s*$/",$line,$matches)) { $conf[ $matches[1] ] = trim($matches[2]); } } } else { die("
".sprintf("Missing or unreadable config file (%s)...cannot continue", $filename)."
"); } return $conf; } ?> You do not have permissions to access this resource.