<?php /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ include_once 'config.php'; include_once 'plugin/Git/class/UserGitrepo.class.php'; include_once 'plugin/Git/class/Git.class.php'; $do_usergit = new UserGitrepo(); $do_usergit->getAll(); $rows = $do_usergit->getNumRows(); $repo_path = "plugin/Git/repos/"; $commitlog = array(); while ($do_usergit->fetch()) { $repo_name = $do_usergit->getData('git_repo'); $folder = "{$repo_path}" . "{$repo_name}"; if (is_dir($folder)) { $repo = Git::open($folder); echo '<pre>'; print_r($repo->log()); echo '</pre>'; $commitlog = $repo->log(); $commit_log = split('\\^', $commitlog); foreach ($commit_log as $commits) { if (!empty($commits)) { $commit_hash = split(";", $commits); $user = split("--", $commit_hash[1]); $user_email = $user[0]; $user_email = trim($user_email); $date = split(":", $user[1]); $date_log = $date[0];