siwwy :3 #3
					 1 changed files with 2 additions and 1 deletions
				
			
		Add IP to guestbook admin page
				commit
				
					
					
						690ea377fe
					
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
@section('content')
 | 
					@section('content')
 | 
				
			||||||
    @php
 | 
					    @php
 | 
				
			||||||
        $entries = DB::select('
 | 
					        $entries = DB::select('
 | 
				
			||||||
            SELECT id, name, timestamp, message
 | 
					            SELECT id, name, timestamp, message, ip_address
 | 
				
			||||||
            FROM guestbook__entries
 | 
					            FROM guestbook__entries
 | 
				
			||||||
            ORDER BY id DESC
 | 
					            ORDER BY id DESC
 | 
				
			||||||
        ');
 | 
					        ');
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,7 @@
 | 
				
			||||||
            <tr>
 | 
					            <tr>
 | 
				
			||||||
                <td>
 | 
					                <td>
 | 
				
			||||||
                    Name: {{ $entry->name }}<br/>
 | 
					                    Name: {{ $entry->name }}<br/>
 | 
				
			||||||
 | 
					                    IP:   {{ $entry->ip_address }}<br/>
 | 
				
			||||||
                    Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
 | 
					                    Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
 | 
				
			||||||
                </td>
 | 
					                </td>
 | 
				
			||||||
                <td class="gb_del">
 | 
					                <td class="gb_del">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue