Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Change Log Help

phpMyEdit Configuration     Change Log Help
Post new topic   Reply to topic    
 
bobwill     Joined: 04 Feb 2007   Posts: 13  
Post Posted: 2007-02-09 14:47
Back to top  Reply with quote     

I created a table named "changelog" as describe in the user manual. I also added a "index" to the table.

I place the option code

$opts['logtable'] = 'changelog';

in my "php" file that accesses my table.

Not quite sure where to place this in the code. So I just placed it near the top. I accessed my table and nothin was being written to the "changelog" table. I did a search on the forum for help and found out that placing the following code may help.

if(empty($_SERVER['REMOTE_USER'])) { $_SERVER['REMOTE_USER'] = $login; }

Still nothing written to "changelog" Any suggestions?

 
jeffs     Joined: 17 May 2007   Posts: 3  
Post Posted: 2007-05-17 17:39
Back to top  Reply with quote     

I have looked at the answers here and still can't get the changelog features to work. I've created the changelog table and put in the opt changelog line but nothing gets written to the changelog.

Does anyone have an example script that works?

Thanks,

 
jeffs     Joined: 17 May 2007   Posts: 3  
Post Posted: 2007-05-18 17:45
Back to top  Reply with quote     

I got changelog to work. my changelog db had a field column instead of col.

My question now is how do you get user to come up with a name since there is no login?

 
nad2000     Joined: 16 Jul 2010   Posts: 1  
Post Posted: 2010-07-16 10:26
Back to top  Reply with quote     

phpMyEdit.php add a method to the class phpMyEdit :
Code:

   protected $user_name = NULL;
   public function get_user_name()
   {
      if (!isset($this->user_name)) {
         $this->user_name = $this->get_server_var('REMOTE_USER');
      }
      return $this->user_name;
   }


and replace all
Code:
$this->get_server_var('REMOTE_USER')
with
Code:
$this->function get_user_name()


and now you can override it in your application for you specific authentication schema, e.g.:
Code:

require_once 'phpMyEdit.class.php';
class myPhpMyEdit extends phpMyEdit {
   public function get_user_name()
   {
      if (!isset($this->user_name)) {
         $this->user_name = Common::getLoginName(); // or whatever
      }
      return $this->user_name;
   }
}


and star using your customized phpMyEdit .
Cheers!
PS even though phpMyEdit in the age of AJAX and jQuery looks a bit outdated, it is a really great gadget. Good work! Many thanks

 
hibaaryan     Joined: 09 Jan 2015   Posts: 1  
Post Posted: 2015-01-09 11:45
Back to top  Reply with quote     

no luck - tried this $ opts ['fdd'] ['dummy'] = array ( 'name' => 'last', // 'options' => 'LV', 'colattrs' =>' style = "color blue; background-color: transparent '', 'input' => 'V', 'select' => 'T', 'sort' => true, // 'datemask' => 'r', 'values' => array (// API for currently making a join in PME. 'table' => 'pneialiyot', // the table to Which We're joining 'column' => 'id', // the key field in the joined table 'description' => 'date', // the Desired column in the joined table 'join' => '$ main_table.member = $ join_table.member AND $ main_table.firstname = $ join_table.name' // ' filters' => 'MAX (date)', ), 'sql' => 'PMEjoin7.date', 'filters' => 'max (PMEjoin7.date)',



______________________________
hiba aryan

 
hetof     Joined: 28 Apr 2021   Posts: 1  
Post Posted: 2021-04-28 06:58
Back to top  Reply with quote     

Platon technologies are the open source software developments that are used to be celebrated in the terminal stand of nature. PhP edit configuration has the nature of making the developmental slot of keeping the data in top essay services with the number of help in log in instruction for all matters.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov