Browse Source

Merge branch 'master' of https://github.com/h3xx/Teknik into h3xx-master

development
Teknikode 4 years ago
parent
commit
138af8dbfa
1 changed files with 39 additions and 6 deletions
  1. 39
    6
      home/profile.php

+ 39
- 6
home/profile.php View File

@@ -30,10 +30,10 @@ if (isset($_GET['id']))
<?php } ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Email</strong></span> <a href="mailto:<?php echo $Profile_User->username; ?>@teknik.io"><?php echo $Profile_User->username; ?>@teknik.io</a></li>
<?php if ($Profile_User->blog_title) { ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Blog</strong></span> <a href="<?php echo get_page_url('blog', $CONF).'/'.$Profile_User->username; ?>" id="blog_title"><?php echo $Profile_User->blog_title; ?></a></li>
<?php } ?>
<?php if (is_dir("B:\\Repositories\\Teknik\\".strtolower($Profile_User->username)) && !is_dir_empty("B:\\Repositories\\Teknik\\".strtolower($Profile_User->username))) { ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Git</strong></span> <a href="<?php echo get_page_url('git', $CONF).'/u/'.$Profile_User->username; ?>">Public Repos</a></li>
<li class="list-group-item text-right"><span class="pull-left"><strong>Blog</strong></span> <a href="<?php echo get_page_url('blog', $CONF).'/'.$Profile_User->username; ?>" id="blog_title"><?php echo $Profile_User->blog_title; ?></a></li>
<?php } ?>
<?php if (is_dir("B:\\Repositories\\Teknik\\".$Profile_User->username)) { ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Git</strong></span> <a href="<?php echo get_page_url('git', $CONF).'/'.$Profile_User->username; ?>">Public Repos</a></li>
<?php } ?>
<?php if ($own_profile) { ?>
<li class="list-group-item text-center"><button type="button" class="btn btn-danger" id="delete_account">Delete Account</button></li>
@@ -176,7 +176,40 @@ if (isset($_GET['id']))
<input class="form-control" id="update_minecraft" name="update_minecraft" placeholder="super_miner64" title="enter your minecraft username" type="text" value="<?php echo $Profile_User->minecraft_user; ?>" />
</div>
</div>
-->
-->
<!-- Git Settings -->
<div class="row">
<div class="col-sm-12 text-center">
<h3>Git Settings</h3>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12">
<h4>Public Key(s)</h4>
<input id="update_public_key" name="update_public_key" type="hidden" value="<?php echo $Profile_User->public_key; ?>" />
</div>
</div>
<div class="row">
<div class="col-sm-12" id="public_key_list">
<?php
$keyList = array_filter(explode(",", $Profile_User->public_key));
$index = 1;
foreach ($keyList as $key)
{
?>
<div class="public_key_<?php echo $index; ?>"><div class="input-group"><input type="text" class="form-control" id="public_key_input_<?php echo $index; ?>" value="<?php echo $key; ?>" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="<?php echo $index; ?>">Remove</button></span></div><br /></div>
<?php
$index++;
}
?>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<button class="btn btn-md btn-primary" id="add_public_key"><i class="glyphicon glyphicon-plus"></i> Add Key</button>
</div>
</div>
<!-- Blog Settings -->
<div class="row">
<div class="col-sm-12 text-center">
@@ -238,4 +271,4 @@ else
redirect(get_page_url("home", $CONF));
}
include('../templates/'.$CONF['template'].'/footer.php');
?>
?>

Loading…
Cancel
Save